Update count inside on_next_key callback

This commit is contained in:
thomasschafer 2024-07-21 22:07:46 +01:00
parent b100310e64
commit 1e476c2bab
No known key found for this signature in database

View File

@ -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() {