[gtksourceview/wip/chergert/vim] implement J



commit 58f96fba736e5be38b154e3873257e18eae92777
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 28 21:59:52 2021 -0700

    implement J

 gtksourceview/vim/gtk-source-vim-normal.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index 2e8c1e7c..5eeef980 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -431,8 +431,14 @@ key_handler_command (GtkSourceVimNormal *self,
                                                            NULL);
                        break;
 
-               case GDK_KEY_asciitilde:
                case GDK_KEY_J:
+                       gtk_source_vim_normal_begin_command (self,
+                                                            gtk_source_vim_motion_new_next_line_end_with_nl 
(),
+                                                            gtk_source_vim_motion_new_line_start (),
+                                                            ":join");
+                       return TRUE;
+
+               case GDK_KEY_asciitilde:
                case GDK_KEY_p:
                case GDK_KEY_P:
                case GDK_KEY_period:


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