multiple-cursors.el/features/edit-lines.feature
Magnar Sveen f7d393d46e Don't use next-line and previous-line in non-interactive ways.
- it messes up in visual-line-mode

Fixes #10
2012-09-24 20:00:33 +02:00

33 lines
983 B
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 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