Skip to content

Commit

Permalink
Assign normal mode when re-enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansobo committed Mar 27, 2022
1 parent daf999c commit c6ad667
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/vim/src/vim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit c6ad667

Please sign in to comment.