Merge pull request #2443 from zed-industries/fix-vim-mode-rename
Avoid calling `update_window` twice in `blurred` event handler
This commit is contained in:
@@ -35,9 +35,7 @@ fn blurred(EditorBlurred(editor): &EditorBlurred, cx: &mut AppContext) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cx.update_window(editor.window_id(), |cx| {
|
editor.update(cx, |editor, cx| Vim::unhook_vim_settings(editor, cx))
|
||||||
editor.update(cx, |editor, cx| Vim::unhook_vim_settings(editor, cx))
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user