pterosaur icon indicating copy to clipboard operation
pterosaur copied to clipboard

ESC during change commands deselects text area

Open jeaye opened this issue 9 years ago • 2 comments

I've found that using escape to cancel commands (not related to VimFx) such a changing inside text objects ends up deselecting the text area.

Given text: (foo bar spam)

Typing, in normal mode where the cursor is on, say, b: ci<ESC>

Ends up, instead of cancelling the change, deselecting the text area.

jeaye avatar Mar 04 '15 06:03 jeaye

I don't believe this is a duplicate; please reopen it. The issue is that I believe pterosaur should keep track of whether or not the user is currently building a motion command when handling an escape press. If escape is pressed in the middle of such a command, the command should be cancelled and the user should stay in normal mode.

jeaye avatar Mar 06 '15 08:03 jeaye

I'm reopening, but this is low priority.

ardagnir avatar Mar 06 '15 15:03 ardagnir