mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
Clear autoindent requests when applying autoindent
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
6f26fa013a
commit
43db9e826b
1 changed files with 1 additions and 0 deletions
|
@ -980,6 +980,7 @@ impl Buffer {
|
|||
indent_columns: BTreeMap<u32, u32>,
|
||||
cx: &mut ModelContext<Self>,
|
||||
) {
|
||||
self.autoindent_requests.clear();
|
||||
self.start_transaction();
|
||||
for (row, indent_column) in &indent_columns {
|
||||
self.set_indent_column_for_line(*row, *indent_column, cx);
|
||||
|
|
Loading…
Reference in a new issue