[gtksourceview] vim: hide command label while in command bar



commit db853a7f4913d0c417554458960c6cddb8c1fc7e
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 11 23:49:37 2021 -0800

    vim: hide command label while in command bar

 gtksourceview/vim/gtksourcevimcommandbar.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/gtksourceview/vim/gtksourcevimcommandbar.c b/gtksourceview/vim/gtksourcevimcommandbar.c
index b8c2cefc..a8e4a4d5 100644
--- a/gtksourceview/vim/gtksourcevimcommandbar.c
+++ b/gtksourceview/vim/gtksourcevimcommandbar.c
@@ -273,6 +273,13 @@ gtk_source_vim_command_bar_leave (GtkSourceVimState *state)
        gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (view), TRUE);
 }
 
+static void
+gtk_source_vim_command_bar_append_command (GtkSourceVimState *state,
+                                           GString           *command_text)
+{
+       g_string_truncate (command_text, 0);
+}
+
 static void
 gtk_source_vim_command_bar_class_init (GtkSourceVimCommandBarClass *klass)
 {
@@ -281,6 +288,7 @@ gtk_source_vim_command_bar_class_init (GtkSourceVimCommandBarClass *klass)
 
        object_class->dispose = gtk_source_vim_command_bar_dispose;
 
+       state_class->append_command = gtk_source_vim_command_bar_append_command;
        state_class->enter = gtk_source_vim_command_bar_enter;
        state_class->leave = gtk_source_vim_command_bar_leave;
        state_class->handle_keypress = gtk_source_vim_command_bar_handle_keypress;


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