vim: Show 'j' from jk pre-emptively (#32007)

Fixes: #29812
Fixes: #22538

Co-Authored-By: <corentinhenry@gmail.com>

Release Notes:

- vim: Multi-key bindings in insert mode will now show the pending
keystroke in the buffer. For example if you have `jk` mapped to escape,
pressing `j` will immediately show a `j`.
This commit is contained in:
Conrad Irwin 2025-06-06 14:11:51 -06:00 committed by GitHub
parent 35a119d573
commit 5ad51ca48e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 151 additions and 4 deletions

View file

@ -839,7 +839,7 @@ impl PlatformInputHandler {
.ok();
}
fn replace_and_mark_text_in_range(
pub fn replace_and_mark_text_in_range(
&mut self,
range_utf16: Option<Range<usize>>,
new_text: &str,

View file

@ -3542,6 +3542,7 @@ impl Window {
.dispatch_tree
.flush_dispatch(currently_pending.keystrokes, &dispatch_path);
window.pending_input_changed(cx);
window.replay_pending_input(to_replay, cx)
})
.log_err();