[gtksourceview/wip/chergert/vim: 288/293] wire : to command bar in visual




commit 26ceef1a5edca886f7d8817b32d44ff373c74ef3
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 4 09:43:57 2021 -0700

    wire : to command bar in visual

 gtksourceview/vim/gtk-source-vim-visual.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-visual.c b/gtksourceview/vim/gtk-source-vim-visual.c
index fad821c7..289cdc99 100644
--- a/gtksourceview/vim/gtk-source-vim-visual.c
+++ b/gtksourceview/vim/gtk-source-vim-visual.c
@@ -27,6 +27,7 @@
 
 #include "gtk-source-vim-char-pending.h"
 #include "gtk-source-vim-command.h"
+#include "gtk-source-vim-command-bar.h"
 #include "gtk-source-vim-insert.h"
 #include "gtk-source-vim-motion.h"
 #include "gtk-source-vim-replace.h"
@@ -594,6 +595,14 @@ key_handler_initial (GtkSourceVimVisual *self,
                case GDK_KEY_less:
                        return gtk_source_vim_visual_begin_command (self, "unindent", FALSE);
 
+               case GDK_KEY_colon:
+               {
+                       GtkSourceVimState *new_state = gtk_source_vim_command_bar_new ();
+                       gtk_source_vim_command_bar_set_text (GTK_SOURCE_VIM_COMMAND_BAR (new_state), 
":'<,'>");
+                       gtk_source_vim_state_push (GTK_SOURCE_VIM_STATE (self), new_state);
+                       return TRUE;
+               }
+
                default:
                        break;
        }


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