C14.6 r1: visual after preview opens an empty end; undo in an untouched block steps the document
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ca3af59222
commit
a75949f285
6 files changed
+22
-5
No files matched your search
@@ -94,6 +94,18 @@ fn undo_reaches_across_modes(cx: &mut TestAppContext) {
|
||||
);
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
fn undo_brings_back_a_text_emptied_in_source(cx: &mut TestAppContext) {
|
||||
let (view, cx) = open("Seed\n", cx);
|
||||
view.update_in(cx, |view, window, cx| view.switch(Mode::Source, window, cx));
|
||||
view.update(cx, |view, cx| view.adopt(String::new(), cx));
|
||||
view.update_in(cx, |view, window, cx| view.switch(Mode::Visual, window, cx));
|
||||
focused(&view, cx);
|
||||
cx.simulate_keystrokes("secondary-z");
|
||||
cx.run_until_parked();
|
||||
assert_eq!(current(&view, cx), "Seed\n");
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
fn a_new_empty_file_takes_typing_in_visual(cx: &mut TestAppContext) {
|
||||
let (view, cx) = open("", cx);
|
||||
|
||||
Reference in new issue
Block a user