mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-04 14:22:24 +00:00
Support commands with multiple read-chars
This change fixes commands that read-chars multiple times. Previously, two stage commands like embrace-change would read the same char twice immediately and avy-goto-char-timer would never stop reading input as a cached value was always provided during the timer. Instead, the read-char prompt is included in the cache key so that multiple different calls are cached separately and accessible by the fake cursors.
This commit is contained in:
@@ -50,6 +50,13 @@ Feature: Multiple cursors core
|
||||
And I press "C-!"
|
||||
Then I should see "This aatext contains the word aatext twice"
|
||||
|
||||
Scenario: Unknown command with multiple read: yes, do for all
|
||||
Given I have bound C-! to a new command that inserts two read-chars
|
||||
And I have cursors at "text" in "This text contains the word text twice"
|
||||
When I press "C-! b c y"
|
||||
And I press "C-! d e"
|
||||
Then I should see "This bcdetext contains the word bcdetext twice"
|
||||
|
||||
Scenario: Unknown command: no, don't do for all
|
||||
Given I have bound C-! to another new command that inserts "a"
|
||||
And I have cursors at "text" in "This text contains the word text twice"
|
||||
|
||||
Reference in New Issue
Block a user