Don't show vim mode when disabled
This commit is contained in:
@@ -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);
|
||||||
cx.emit_global(VimEvent::ModeChanged {
|
if vim.enabled {
|
||||||
mode: vim.state().mode,
|
cx.emit_global(VimEvent::ModeChanged {
|
||||||
});
|
mode: vim.state().mode,
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user