From 43db9e826b7a462e45677e1808149288b05ca9cb Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 27 Dec 2021 13:33:48 -0800 Subject: [PATCH] Clear autoindent requests when applying autoindent Co-Authored-By: Nathan Sobo --- crates/language/src/buffer.rs | 1 + 1 file changed, 1 insertion(+) 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);