mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-11 10:55:45 +03:00
Update count inside on_next_key callback
This commit is contained in:
parent
b100310e64
commit
1e476c2bab
@ -5253,6 +5253,7 @@ fn goto_impl(cx: &mut Context, direction: Direction) {
|
||||
let count = cx.count();
|
||||
|
||||
cx.on_next_key(move |cx, event| {
|
||||
cx.count = NonZeroUsize::new(count);
|
||||
cx.editor.autoinfo = None;
|
||||
|
||||
if let Some(ch) = event.char() {
|
||||
|
Loading…
Reference in New Issue
Block a user