Clear auto-indent requests when replacing a buffer's entire text

This commit is contained in:
Max Brunsfeld 2023-03-22 15:10:16 -07:00
parent eaee5571a0
commit 361b7c3a0c

View File

@ -1366,6 +1366,7 @@ impl Buffer {
where
T: Into<Arc<str>>,
{
self.autoindent_requests.clear();
self.edit([(0..self.len(), text)], None, cx)
}