[gtksourceview/wip/chergert/vim] vim doesnt allow repeat for D or C



commit e80115c873945f76b221e39b39c4c86c76dc9578
Author: Christian Hergert <chergert redhat com>
Date:   Wed Oct 27 16:27:34 2021 -0700

    vim doesnt allow repeat for D or C

 gtksourceview/vim/gtk-source-vim-normal.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index d65a43aa..5adf4b43 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -349,6 +349,8 @@ key_handler_command (GtkSourceVimNormal *self,
                        return TRUE;
 
                case GDK_KEY_C:
+                       if (self->repeat != 0)
+                               return gtk_source_vim_normal_bail (self);
                        gtk_source_vim_normal_begin_change (self,
                                                            gtk_source_vim_motion_new_line_end (),
                                                            INSERT_HERE,
@@ -356,6 +358,8 @@ key_handler_command (GtkSourceVimNormal *self,
                        return TRUE;
 
                case GDK_KEY_D:
+                       if (self->repeat != 0)
+                               return gtk_source_vim_normal_bail (self);
                        gtk_source_vim_normal_begin_delete (self,
                                                            gtk_source_vim_motion_new_line_end (),
                                                            NULL);


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