[gtksourceview/wip/chergert/vim] implement x



commit 2021ae4e36db6e5c4ecff40fc482699c51c988dc
Author: Christian Hergert <chergert redhat com>
Date:   Wed Oct 27 16:44:10 2021 -0700

    implement x

 gtksourceview/vim/gtk-source-vim-normal.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index f34743fe..f85d1fc1 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -365,6 +365,12 @@ key_handler_command (GtkSourceVimNormal *self,
                                                            NULL);
                        return TRUE;
 
+               case GDK_KEY_x:
+                       gtk_source_vim_normal_begin_delete (self,
+                                                           gtk_source_vim_motion_new_forward_char (),
+                                                           NULL);
+                       return TRUE;
+
                case GDK_KEY_asciitilde:
                case GDK_KEY_J:
                case GDK_KEY_p:
@@ -372,7 +378,6 @@ key_handler_command (GtkSourceVimNormal *self,
                case GDK_KEY_period:
                case GDK_KEY_s:
                case GDK_KEY_S:
-               case GDK_KEY_x:
                case GDK_KEY_equal:
                case GDK_KEY_plus:
                        break;


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