mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Clear auto-indent requests when replacing a buffer's entire text
This commit is contained in:
parent
eaee5571a0
commit
361b7c3a0c
1 changed files with 1 additions and 0 deletions
|
@ -1366,6 +1366,7 @@ impl Buffer {
|
|||
where
|
||||
T: Into<Arc<str>>,
|
||||
{
|
||||
self.autoindent_requests.clear();
|
||||
self.edit([(0..self.len(), text)], None, cx)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue