vim: Fix blackhole register (#17419)
Closes: #17306 Release Notes: - vim: Fixed `"_` register writes overwriting `"` register.
This commit is contained in:
parent
1e09884a22
commit
a7c46206de
3 changed files with 27 additions and 4 deletions
|
@ -1424,7 +1424,17 @@ async fn test_record_replay_recursion(cx: &mut gpui::TestAppContext) {
|
|||
cx.simulate_shared_keystrokes(".").await;
|
||||
cx.simulate_shared_keystrokes(".").await;
|
||||
cx.simulate_shared_keystrokes(".").await;
|
||||
cx.shared_state().await.assert_eq("ˇhello world"); // takes a _long_ time
|
||||
cx.shared_state().await.assert_eq("ˇhello world");
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
async fn test_blackhole_register(cx: &mut gpui::TestAppContext) {
|
||||
let mut cx = NeovimBackedTestContext::new(cx).await;
|
||||
|
||||
cx.set_shared_state("ˇhello world").await;
|
||||
cx.simulate_shared_keystrokes("d i w \" _ d a w").await;
|
||||
cx.simulate_shared_keystrokes("p").await;
|
||||
cx.shared_state().await.assert_eq("hellˇo");
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue