Don't disable auto-indent when typing in multi buffers (#18984)

Release Notes:

- Fixed a bug where auto-indent was not enabled while typing in
multi-buffers
This commit is contained in:
Max Brunsfeld 2024-10-09 20:41:58 -07:00 committed by GitHub
parent 05b2010db5
commit 5cf4ac16d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -724,7 +724,7 @@ impl MultiBuffer {
original_indent_columns: Default::default(),
})
} else {
None
autoindent_mode.clone()
};
let insertion_autoindent_mode =
if let Some(AutoindentMode::Block { .. }) = autoindent_mode {
@ -732,7 +732,7 @@ impl MultiBuffer {
original_indent_columns,
})
} else {
None
autoindent_mode.clone()
};
buffer.edit(deletions, deletion_autoindent_mode, cx);