Never execute keyboard macros for fake cursors.

- The real cursor will execute the keyboard macro, resulting in new
   commands in the command loop, and the fake cursors can pick up on
   those instead.

Fixes #18
This commit is contained in:
Magnar Sveen
2012-10-02 12:19:00 +02:00
parent 6d4979db46
commit 7a6eb0df90
4 changed files with 349 additions and 0 deletions

View File

@@ -119,6 +119,16 @@ Feature: Multiple cursors core
And I type "!"
Then I should see "This ! contains the word ! twice"
Scenario: wrap-region (function turns to keyboard macros)
Given I turn on wrap-region-mode
And I insert "This text contains the word text twice"
And I go to the front of the word "text"
And I press "C-M-SPC"
And I press "C->"
And I press "C-g"
And I type "("
Then I should see "This (text contains the word (text twice"
Scenario: Bound keyboard macros
Given I have bound C-! to a keyboard macro that insert "_"
And I have cursors at "text" in "This text contains the word text twice"