Fix undo in replace mode (#10086)
Fixes: #10031 Co-Authored-By: Petros <petros@amignosis.com> Release Notes: - vim: Fix undo grouping in Replace mode ([#10031](https://github.com/zed-industries/zed/issues/10031)). --------- Co-authored-by: Petros <petros@amignosis.com>
This commit is contained in:
parent
49c53bc0ec
commit
fc08ea9b0d
2 changed files with 13 additions and 2 deletions
|
@ -349,4 +349,13 @@ mod test {
|
|||
]);
|
||||
cx.assert_state("ˇabˇcabcabc", Mode::Replace);
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
async fn test_replace_undo(cx: &mut gpui::TestAppContext) {
|
||||
let mut cx = VimTestContext::new(cx, true).await;
|
||||
|
||||
cx.set_state("ˇaaaa", Mode::Normal);
|
||||
cx.simulate_keystrokes(["0", "shift-r", "b", "b", "b", "escape", "u"]);
|
||||
cx.assert_state("ˇaaaa", Mode::Normal);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue