Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | helix-term/src/commands.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 98e876ee..9dc1cd33 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -5975,6 +5975,9 @@ fn select_register(cx: &mut Context) { } fn insert_register(cx: &mut Context) { + // TODO: count is reset to 1 before next key so we move it into the closure here. + // Would be nice to carry over. + let count = cx.count(); cx.editor.autoinfo = Some(Info::from_registers( "Insert register", &cx.editor.registers, @@ -5988,7 +5991,7 @@ fn insert_register(cx: &mut Context) { cx.register .unwrap_or(cx.editor.config().default_yank_register), Paste::Cursor, - cx.count(), + count, ); } }) |