fix typo in blink manager disable which didn't properly disable, and start editors with the blink manager disabled

This commit is contained in:
K Simmons 2022-10-26 17:39:17 -07:00
parent fcfc4a4298
commit 41699224ff
2 changed files with 7 additions and 4 deletions

View file

@ -6511,8 +6511,10 @@ impl View for Editor {
if let Some(rename) = self.pending_rename.as_ref() {
cx.focus(&rename.editor);
} else {
if !self.focused {
self.blink_manager.update(cx, BlinkManager::enable);
}
self.focused = true;
self.blink_manager.update(cx, BlinkManager::enable);
self.buffer.update(cx, |buffer, cx| {
buffer.finalize_last_transaction(cx);
if self.leader_replica_id.is_none() {