mc/edit-lines: Don't include the 'invisible' line

- when marking a region from bottom to top there is an invisible line
   in the region if mark is at the beginning of the line.
 - don't count that line when doing mc/edit-lines
This commit is contained in:
Magnar Sveen
2012-09-27 10:52:21 +02:00
parent d7263f21f0
commit b48e2b7682
2 changed files with 19 additions and 2 deletions

View File

@@ -18,6 +18,18 @@ Feature: Switching from a multiline region to multiple cursors
And I press "C-S-c C-S-c"
Then I should have 2 cursors
Scenario: Edit lines from bottom up
When I insert:
"""
hello
there
"""
And I go to the front of the word "there"
And I set the mark
And I go to the front of the word "hello"
And I press "C-S-c C-S-c"
Then I should have one cursor
Scenario: Edit only real lines, even in visual-line-mode
Given I turn on visual-line-mode
And I insert: