[gnome-builder] vim: make 'cd' do nothing



commit b4c565fb954f52255b6c41fe70e98b2d559ad7d7
Author: Hashem Nasarat <hashem riseup net>
Date:   Sun Oct 12 16:47:23 2014 -0400

    vim: make 'cd' do nothing
    
    In vim, it does nothing (instead of doing the same thing as dd).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738415

 src/editor/gb-editor-vim.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 90dc14a..45565e3 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -3884,8 +3884,9 @@ gb_editor_vim_cmd_change (GbEditorVim *vim,
       gb_editor_vim_cmd_delete (vim, count, 'd');
       gb_editor_vim_cmd_insert_before_line (vim, 0, '\0');
     }
-  else
+  else if (modifier != 'd')
     {
+      /* cd should do nothing */
       gb_editor_vim_cmd_delete (vim, count, modifier);
       gb_editor_vim_set_mode (vim, GB_EDITOR_VIM_INSERT);
     }


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