Assign normal mode when re-enabling

This commit is contained in:
Nathan Sobo 2022-03-26 18:38:00 -06:00
parent daf999c3be
commit c6ad667d49

View file

@ -65,6 +65,9 @@ impl VimState {
fn set_enabled(&mut self, enabled: bool, cx: &mut MutableAppContext) {
if self.enabled != enabled {
self.enabled = enabled;
if enabled {
self.mode = Mode::Normal;
}
self.sync_editor_options(cx);
}
}