mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 13:03:03 +00:00

- 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
45 lines
1.2 KiB
Gherkin
45 lines
1.2 KiB
Gherkin
Feature: Switching from a multiline region to multiple cursors
|
|
|
|
Scenario: Single line region
|
|
When I insert "hello there"
|
|
And I select "there"
|
|
And I press "C-S-c C-S-c"
|
|
Then I should have one cursor
|
|
|
|
Scenario: Edit lines
|
|
When I insert:
|
|
"""
|
|
hello
|
|
there
|
|
"""
|
|
And I go to the front of the word "hello"
|
|
And I set the mark
|
|
And I go to the front of the word "there"
|
|
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:
|
|
"""
|
|
some very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very
|
|
long text
|
|
"""
|
|
And I go to the front of the word "some"
|
|
And I set the mark
|
|
And I go to the front of the word "long"
|
|
And I press "C-S-c C-S-c"
|
|
Then I should have 2 cursors
|