[gnome-builder/wip/vim] vim: only change to NORMAL mode on focus-in if we are in COMMAND
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/vim] vim: only change to NORMAL mode on focus-in if we are in COMMAND
- Date: Wed, 1 Oct 2014 22:34:19 +0000 (UTC)
commit 55e66f214838c981431b754189cdd1a43bad6ef5
Author: Christian Hergert <christian hergert me>
Date: Wed Oct 1 15:34:13 2014 -0700
vim: only change to NORMAL mode on focus-in if we are in COMMAND
Anything else is actually too much and not really expected.
src/editor/gb-editor-vim.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 4351a66..22af4df 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -1788,7 +1788,7 @@ gb_editor_vim_focus_in_event_cb (GtkTextView *text_view,
g_return_val_if_fail (event, FALSE);
g_return_val_if_fail (GB_IS_EDITOR_VIM (vim), FALSE);
- if (vim->priv->mode != GB_EDITOR_VIM_NORMAL)
+ if (vim->priv->mode == GB_EDITOR_VIM_COMMAND)
gb_editor_vim_set_mode (vim, GB_EDITOR_VIM_NORMAL);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]