Skip to content

Commit

Permalink
Don't disable auto-indent when typing in multi buffers (zed-industrie…
Browse files Browse the repository at this point in the history
…s#18984)

Release Notes:

- Fixed a bug where auto-indent was not enabled while typing in
multi-buffers
  • Loading branch information
maxbrunsfeld authored and noaccOS committed Oct 19, 2024
1 parent 62f4d0c commit d1a8cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/multi_buffer/src/multi_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,15 +724,15 @@ impl MultiBuffer {
original_indent_columns: Default::default(),
})
} else {
None
autoindent_mode.clone()
};
let insertion_autoindent_mode =
if let Some(AutoindentMode::Block { .. }) = autoindent_mode {
Some(AutoindentMode::Block {
original_indent_columns,
})
} else {
None
autoindent_mode.clone()
};

buffer.edit(deletions, deletion_autoindent_mode, cx);
Expand Down

0 comments on commit d1a8cb5

Please sign in to comment.