vim gigv (#13028)
Release Notes: - vim: Fix `gi` when the insert ended at the end of a line (#12162) - vim: Add `gv` to restore previous visual selection (#12888) - vim: Fix `gl` when the first match is at the end of a line
This commit is contained in:
parent
3539a7c04a
commit
3b84b106e2
12 changed files with 239 additions and 49 deletions
|
@ -1127,6 +1127,26 @@ async fn test_lt_gt_marks(cx: &mut TestAppContext) {
|
|||
Line five
|
||||
"
|
||||
});
|
||||
|
||||
cx.simulate_shared_keystrokes("v i w o escape").await;
|
||||
cx.simulate_shared_keystrokes("` >").await;
|
||||
cx.shared_state().await.assert_eq(indoc! {"
|
||||
Line one
|
||||
Line two
|
||||
Line three
|
||||
Line fouˇr
|
||||
Line five
|
||||
"
|
||||
});
|
||||
cx.simulate_shared_keystrokes("` <").await;
|
||||
cx.shared_state().await.assert_eq(indoc! {"
|
||||
Line one
|
||||
Line two
|
||||
Line three
|
||||
Line ˇfour
|
||||
Line five
|
||||
"
|
||||
});
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
|
@ -1166,4 +1186,14 @@ async fn test_caret_mark(cx: &mut TestAppContext) {
|
|||
Line five
|
||||
"
|
||||
});
|
||||
|
||||
cx.simulate_shared_keystrokes("k a ! escape k g i ?").await;
|
||||
cx.shared_state().await.assert_eq(indoc! {"
|
||||
Line one
|
||||
Line two
|
||||
Line three!?ˇ
|
||||
Straight thing four
|
||||
Line five
|
||||
"
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue