Fix failing test re mode switch in buffer search
This commit is contained in:
parent
1cfaac1bc5
commit
a77cf914ec
1 changed files with 3 additions and 2 deletions
|
@ -266,7 +266,7 @@ mod test {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[gpui::test]
|
#[gpui::test]
|
||||||
async fn test_buffer_search_switches_mode(cx: &mut gpui::TestAppContext) {
|
async fn test_buffer_search(cx: &mut gpui::TestAppContext) {
|
||||||
let mut cx = VimTestContext::new(cx, true).await;
|
let mut cx = VimTestContext::new(cx, true).await;
|
||||||
|
|
||||||
cx.set_state(
|
cx.set_state(
|
||||||
|
@ -278,7 +278,8 @@ mod test {
|
||||||
);
|
);
|
||||||
cx.simulate_keystroke("/");
|
cx.simulate_keystroke("/");
|
||||||
|
|
||||||
assert_eq!(cx.mode(), Mode::Visual { line: false });
|
// We now use a weird insert mode with selection when jumping to a single line editor
|
||||||
|
assert_eq!(cx.mode(), Mode::Insert);
|
||||||
|
|
||||||
let search_bar = cx.workspace(|workspace, cx| {
|
let search_bar = cx.workspace(|workspace, cx| {
|
||||||
workspace
|
workspace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue