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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 0 deletions

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");
}
}