[gtksourceview/wip/chergert/vim: 245/293] cleanup




commit d4ce00f23c1db6e11cce52a6b169bc1bedc8327c
Author: Christian Hergert <chergert redhat com>
Date:   Wed Nov 3 10:41:44 2021 -0700

    cleanup

 gtksourceview/vim/gtk-source-vim-command.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-command.c b/gtksourceview/vim/gtk-source-vim-command.c
index d531a8cb..e97d8c82 100644
--- a/gtksourceview/vim/gtk-source-vim-command.c
+++ b/gtksourceview/vim/gtk-source-vim-command.c
@@ -57,7 +57,6 @@ static GHashTable *commands;
 static void
 gtk_source_vim_command_delete (GtkSourceVimCommand *self)
 {
-       GtkSourceVimState *registers;
        GtkSourceBuffer *buffer;
        GtkTextIter iter, selection;
        char *text;
@@ -75,12 +74,12 @@ gtk_source_vim_command_delete (GtkSourceVimCommand *self)
                g_free (tmp);
        }
 
+       gtk_source_vim_state_set_current_register_value (GTK_SOURCE_VIM_STATE (self), text);
+
        gtk_text_buffer_begin_user_action (GTK_TEXT_BUFFER (buffer));
        gtk_text_buffer_delete (GTK_TEXT_BUFFER (buffer), &iter, &selection);
        gtk_text_buffer_end_user_action (GTK_TEXT_BUFFER (buffer));
 
-       registers = gtk_source_vim_state_get_registers (GTK_SOURCE_VIM_STATE (self));
-       gtk_source_vim_registers_set (GTK_SOURCE_VIM_REGISTERS (registers), NULL, text);
        g_free (text);
 }
 


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