From d1a8cb5366532eff3335d59f5ea88b452ed8db34 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 9 Oct 2024 20:41:58 -0700 Subject: [PATCH] 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 --- crates/multi_buffer/src/multi_buffer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/multi_buffer/src/multi_buffer.rs b/crates/multi_buffer/src/multi_buffer.rs index 18af28498fbe51..a239b5b77049e5 100644 --- a/crates/multi_buffer/src/multi_buffer.rs +++ b/crates/multi_buffer/src/multi_buffer.rs @@ -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);