Commit Graph

2 Commits (a5dc4a8db4a5e92e0a18d97e0f78c1aa8696fad7)

Author SHA1 Message Date
Eric Freese 393f7b8bb9 Fix vi-mode partial-accept
Issue . PR .

Thanks to @toadjaune and @IngoHeimbach.
Eric Freese 42f5a06f7f Need to reset the POSTDISPLAY if exiting early
Specific case where this matters is following:

Be in vi insert mode with some text in the buffer and the cursor at the
end of the buffer. Press `esc` to trigger `vi-cmd-mode widget`, then
before the cursor moves (KEYTIMEOUT), press `h` to trigger
`vi-backward-char` widget. When `vi-cmd-mode` original widget exits,
KEYS_QUEUED_COUNT will be non-zero and the suggestion will be lost.