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:
parent
05b2010db5
commit
5cf4ac16d6
1 changed files with 2 additions and 2 deletions
|
@ -724,7 +724,7 @@ impl MultiBuffer {
|
||||||
original_indent_columns: Default::default(),
|
original_indent_columns: Default::default(),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
None
|
autoindent_mode.clone()
|
||||||
};
|
};
|
||||||
let insertion_autoindent_mode =
|
let insertion_autoindent_mode =
|
||||||
if let Some(AutoindentMode::Block { .. }) = autoindent_mode {
|
if let Some(AutoindentMode::Block { .. }) = autoindent_mode {
|
||||||
|
@ -732,7 +732,7 @@ impl MultiBuffer {
|
||||||
original_indent_columns,
|
original_indent_columns,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
None
|
autoindent_mode.clone()
|
||||||
};
|
};
|
||||||
|
|
||||||
buffer.edit(deletions, deletion_autoindent_mode, cx);
|
buffer.edit(deletions, deletion_autoindent_mode, cx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue