[gtksourceview/wip/chergert/vim: 15/363] dont allow setting repeat twice




commit 4b00a4af9a2ad802379189682e9a59ffa22990b2
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 21 16:39:08 2021 -0700

    dont allow setting repeat twice

 gtksourceview/vim/gtk-source-vim-normal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index 2acdc9eb..7ce4b178 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -353,7 +353,8 @@ key_handler_initial (GtkSourceVimNormal *self,
                        case GDK_KEY_7: case GDK_KEY_KP_7:
                        case GDK_KEY_8: case GDK_KEY_KP_8:
                        case GDK_KEY_9: case GDK_KEY_KP_9:
-                               self->handler = key_handler_repeat;
+                               if (self->has_repeat == FALSE)
+                                       self->handler = key_handler_repeat;
                                break;
 
                        case GDK_KEY_a:


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