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:
parent
35a119d573
commit
5ad51ca48e
4 changed files with 151 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue