documents: Shift-Tab takes four columns out of any mix of spaces and tabs
CI / platforms (windows-latest) (push) Failing after 8s
CI / site (push) Successful in 22s
CI / crate (push) Failing after 10m10s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-12 16:58:50 -04:00
1 parent 58227cdc2f
commit b39097cd3f
2 files changed
+32 -5

No files matched your search

+8
View File
@@ -223,6 +223,14 @@ fn shift_tab_takes_a_tab_indent_out(cx: &mut TestAppContext) {
assert_eq!(opened(&document, cx), "- a\n- b");
}
#[gpui::test]
fn shift_tab_takes_spaces_then_a_tab_out(cx: &mut TestAppContext) {
let (document, cx) = open("- a\n \t- b\n", MarkdownMode::Visual, cx);
press(0, Modifiers::none(), cx);
cx.simulate_keystrokes("shift-tab");
assert_eq!(opened(&document, cx), "- a\n- b");
}
#[gpui::test]
fn a_table_on_an_indented_blank_line_is_a_table(cx: &mut TestAppContext) {
let (document, cx) = open(