vim: Fix issues with r/R (#13623)
Release Notes: - vim: Fix undo after repeated insert/replace mode (#13573) - vim: Fix 'r' repeating too much (#13566)
This commit is contained in:
parent
363ac6bc96
commit
da03610555
5 changed files with 96 additions and 60 deletions
|
@ -499,4 +499,15 @@ mod test {
|
|||
cx.simulate_shared_keystrokes(".").await;
|
||||
cx.shared_state().await.assert_eq("ˇx hello\n");
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
async fn test_undo_repeated_insert(cx: &mut gpui::TestAppContext) {
|
||||
let mut cx = NeovimBackedTestContext::new(cx).await;
|
||||
|
||||
cx.set_shared_state("hellˇo").await;
|
||||
cx.simulate_shared_keystrokes("3 a . escape").await;
|
||||
cx.shared_state().await.assert_eq("hello..ˇ.");
|
||||
cx.simulate_shared_keystrokes("u").await;
|
||||
cx.shared_state().await.assert_eq("hellˇo");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue