diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs index 64be4a9c04..0c8d7ae574 100644 --- a/crates/language/src/buffer.rs +++ b/crates/language/src/buffer.rs @@ -980,6 +980,7 @@ impl Buffer { indent_columns: BTreeMap, cx: &mut ModelContext, ) { + self.autoindent_requests.clear(); self.start_transaction(); for (row, indent_column) in &indent_columns { self.set_indent_column_for_line(*row, *indent_column, cx);