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
|
where
|
||||||
T: Into<Arc<str>>,
|
T: Into<Arc<str>>,
|
||||||
{
|
{
|
||||||
|
self.autoindent_requests.clear();
|
||||||
self.edit([(0..self.len(), text)], None, cx)
|
self.edit([(0..self.len(), text)], None, cx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue