Fix backward search from command
This commit is contained in:
parent
a25fcfdfa7
commit
a59da3634b
3 changed files with 43 additions and 2 deletions
|
@ -355,8 +355,33 @@ mod test {
|
|||
dd
|
||||
ˇcc"})
|
||||
.await;
|
||||
}
|
||||
|
||||
cx.simulate_shared_keystrokes([":", "%", "s", "/", "/", "/", "enter"])
|
||||
#[gpui::test]
|
||||
async fn test_command_search(cx: &mut TestAppContext) {
|
||||
let mut cx = NeovimBackedTestContext::new(cx).await;
|
||||
|
||||
cx.set_shared_state(indoc! {"
|
||||
ˇa
|
||||
b
|
||||
a
|
||||
c"})
|
||||
.await;
|
||||
cx.simulate_shared_keystrokes([":", "/", "b", "enter"])
|
||||
.await;
|
||||
cx.assert_shared_state(indoc! {"
|
||||
a
|
||||
ˇb
|
||||
a
|
||||
c"})
|
||||
.await;
|
||||
cx.simulate_shared_keystrokes([":", "?", "a", "enter"])
|
||||
.await;
|
||||
cx.assert_shared_state(indoc! {"
|
||||
ˇa
|
||||
b
|
||||
a
|
||||
c"})
|
||||
.await;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue