[gtksourceview/wip/chergert/vim] fix tTfF movements
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] fix tTfF movements
- Date: Thu, 4 Nov 2021 17:41:30 +0000 (UTC)
commit 952c48bbbf0feb03020302f30358c68a8c6da759
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]