vim: indent in visual mode uses only one <
Fixes: zed-industries/community#1562
This commit is contained in:
parent
460bf93866
commit
20d8a2a1ec
2 changed files with 3 additions and 3 deletions
|
@ -314,8 +314,8 @@
|
||||||
"vim::SwitchMode",
|
"vim::SwitchMode",
|
||||||
"Normal"
|
"Normal"
|
||||||
],
|
],
|
||||||
"> >": "editor::Indent",
|
">": "editor::Indent",
|
||||||
"< <": "editor::Outdent"
|
"<": "editor::Outdent"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -137,7 +137,7 @@ async fn test_indent_outdent(cx: &mut gpui::TestAppContext) {
|
||||||
cx.assert_editor_state("aa\nbˇb\ncc");
|
cx.assert_editor_state("aa\nbˇb\ncc");
|
||||||
|
|
||||||
// works in visuial mode
|
// works in visuial mode
|
||||||
cx.simulate_keystrokes(["shift-v", "down", ">", ">"]);
|
cx.simulate_keystrokes(["shift-v", "down", ">"]);
|
||||||
cx.assert_editor_state("aa\n b«b\n cˇ»c");
|
cx.assert_editor_state("aa\n b«b\n cˇ»c");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue