Clear auto-indent requests when replacing a buffer's entire text
This commit is contained in:
@@ -1366,6 +1366,7 @@ impl Buffer {
|
||||
where
|
||||
T: Into<Arc<str>>,
|
||||
{
|
||||
self.autoindent_requests.clear();
|
||||
self.edit([(0..self.len(), text)], None, cx)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user