mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-09 21:26:14 +03:00
Clear auto-indent requests when replacing a buffer's entire text
This commit is contained in:
parent
eaee5571a0
commit
361b7c3a0c
@ -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 New Issue
Block a user