mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-28 21:32:39 +00:00
Assign normal mode when re-enabling
This commit is contained in:
parent
daf999c3be
commit
c6ad667d49
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ impl VimState {
|
||||||
fn set_enabled(&mut self, enabled: bool, cx: &mut MutableAppContext) {
|
fn set_enabled(&mut self, enabled: bool, cx: &mut MutableAppContext) {
|
||||||
if self.enabled != enabled {
|
if self.enabled != enabled {
|
||||||
self.enabled = enabled;
|
self.enabled = enabled;
|
||||||
|
if enabled {
|
||||||
|
self.mode = Mode::Normal;
|
||||||
|
}
|
||||||
self.sync_editor_options(cx);
|
self.sync_editor_options(cx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue