Fix ctrl-r with no register (#13184)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2024-06-17 22:17:33 -06:00
committed by GitHub
parent 0af6e442a7
commit 05c4c7872c
4 changed files with 17 additions and 0 deletions
+4
View File
@@ -124,5 +124,9 @@ mod test {
cx.set_shared_state("heˇllo\n").await;
cx.simulate_shared_keystrokes("y y i ctrl-r \"").await;
cx.shared_state().await.assert_eq("hehello\nˇllo\n");
cx.simulate_shared_keystrokes("ctrl-r x ctrl-r escape")
.await;
cx.shared_state().await.assert_eq("hehello\nˇllo\n");
}
}
+1
View File
@@ -896,6 +896,7 @@ impl Vim {
)
}
});
vim.clear_operator(cx);
}
_ => {
vim.select_register(text, cx);