vim: indent in visual mode uses only one <

Fixes: zed-industries/community#1562
This commit is contained in:
Conrad Irwin 2023-06-27 11:52:04 -06:00
parent 460bf93866
commit 20d8a2a1ec
2 changed files with 3 additions and 3 deletions

View File

@ -314,8 +314,8 @@
"vim::SwitchMode",
"Normal"
],
"> >": "editor::Indent",
"< <": "editor::Outdent"
">": "editor::Indent",
"<": "editor::Outdent"
}
},
{

View File

@ -137,7 +137,7 @@ async fn test_indent_outdent(cx: &mut gpui::TestAppContext) {
cx.assert_editor_state("aa\nbˇb\ncc");
// 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");
}