[gnome-builder/wip/vim] vim: o and O should switch to insert mode.



commit 05700258616cf082fa7e7e8edce600ac8b1efee5
Author: Christian Hergert <christian hergert me>
Date:   Wed Oct 1 22:36:05 2014 -0700

    vim: o and O should switch to insert mode.
    
    Fallout from refactoring.

 src/editor/gb-editor-vim.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index d9082ea..7eb88e8 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -2513,6 +2513,7 @@ gb_editor_vim_cmd_insert_before_line (GbEditorVim *vim,
   g_assert (GB_IS_EDITOR_VIM (vim));
 
   gb_editor_vim_insert_nl_before (vim);
+  gb_editor_vim_set_mode (vim, GB_EDITOR_VIM_INSERT);
 }
 
 static void
@@ -2523,6 +2524,7 @@ gb_editor_vim_cmd_insert_after_line (GbEditorVim *vim,
   g_assert (GB_IS_EDITOR_VIM (vim));
 
   gb_editor_vim_insert_nl_after (vim, TRUE);
+  gb_editor_vim_set_mode (vim, GB_EDITOR_VIM_INSERT);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]