mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 17:44:30 +00:00
Don't show vim mode when disabled
This commit is contained in:
parent
9dab6b6a20
commit
3ab3042e95
1 changed files with 5 additions and 3 deletions
|
@ -22,9 +22,11 @@ fn focused(EditorFocused(editor): &EditorFocused, cx: &mut AppContext) {
|
||||||
editor.window().update(cx, |cx| {
|
editor.window().update(cx, |cx| {
|
||||||
Vim::update(cx, |vim, cx| {
|
Vim::update(cx, |vim, cx| {
|
||||||
vim.set_active_editor(editor.clone(), cx);
|
vim.set_active_editor(editor.clone(), cx);
|
||||||
|
if vim.enabled {
|
||||||
cx.emit_global(VimEvent::ModeChanged {
|
cx.emit_global(VimEvent::ModeChanged {
|
||||||
mode: vim.state().mode,
|
mode: vim.state().mode,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue