[gtksourceview/wip/chergert/vim: 289/293] fix tTfF movements




commit b98d8215bc9d2de8abda90b815c44c75ff0a87d3
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 4 10:41:25 2021 -0700

    fix tTfF movements
    
    Also, fF should be both inclusive, and tT are the exclusive forms.

 gtksourceview/vim/gtk-source-vim-motion.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-motion.c b/gtksourceview/vim/gtk-source-vim-motion.c
index b65b606d..efd367d4 100644
--- a/gtksourceview/vim/gtk-source-vim-motion.c
+++ b/gtksourceview/vim/gtk-source-vim-motion.c
@@ -1479,11 +1479,17 @@ gtk_source_vim_motion_handle_keypress (GtkSourceVimState *state,
                        return gtk_source_vim_motion_complete (self, motion_forward_WORD_end, INCLUSIVE, 
CHARWISE);
 
                case GDK_KEY_f:
-                       return gtk_source_vim_motion_begin_char_pending (self, motion_f_char, EXCLUSIVE, 
CHARWISE);
+                       return gtk_source_vim_motion_begin_char_pending (self, motion_f_char, INCLUSIVE, 
CHARWISE);
 
                case GDK_KEY_F:
                        return gtk_source_vim_motion_begin_char_pending (self, motion_F_char, INCLUSIVE, 
CHARWISE);
 
+               case GDK_KEY_t:
+                       return gtk_source_vim_motion_begin_char_pending (self, motion_f_char, EXCLUSIVE, 
CHARWISE);
+
+               case GDK_KEY_T:
+                       return gtk_source_vim_motion_begin_char_pending (self, motion_F_char, EXCLUSIVE, 
CHARWISE);
+
                case GDK_KEY_parenleft:
                        return gtk_source_vim_motion_complete (self, motion_backward_sentence_start, 
INCLUSIVE, CHARWISE);
 


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