[gtksourceview/wip/chergert/vim: 107/293] vim doesnt allow repeat for D or C
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 107/293] vim doesnt allow repeat for D or C
- Date: Fri, 5 Nov 2021 04:23:00 +0000 (UTC)
commit c284edf4e0d384025b1b6ec3f91f1ee772246fa8
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]