[gtksourceview/wip/chergert/vim] return that we handled visual transition



commit a57f4575b658e2441a7c04ee926202df2687187d
Author: Christian Hergert <chergert redhat com>
Date:   Sat Oct 30 08:48:38 2021 -0700

    return that we handled visual transition

 gtksourceview/vim/gtk-source-vim-normal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index ee6681f9..2597390a 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -921,11 +921,11 @@ key_handler_initial (GtkSourceVimNormal *self,
 
                        case GDK_KEY_v:
                                gtk_source_vim_normal_begin_visual (self, GTK_SOURCE_VIM_VISUAL_CHAR);
-                               break;
+                               return TRUE;
 
                        case GDK_KEY_V:
                                gtk_source_vim_normal_begin_visual (self, GTK_SOURCE_VIM_VISUAL_LINE);
-                               break;
+                               return TRUE;
 
                        default:
                                break;


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