mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-18 18:08:07 +03:00
Avoid calling update_window
twice in blurred
event handler
This was preventing us from unhooking vim when performing a rename, which prevented typing in the rename editor.
This commit is contained in:
parent
0f93714d4f
commit
912a4cf549
@ -35,9 +35,7 @@ fn blurred(EditorBlurred(editor): &EditorBlurred, cx: &mut AppContext) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cx.update_window(editor.window_id(), |cx| {
|
editor.update(cx, |editor, cx| Vim::unhook_vim_settings(editor, cx))
|
||||||
editor.update(cx, |editor, cx| Vim::unhook_vim_settings(editor, cx))
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user