[gtksourceview/wip/chergert/vim: 122/363] keep iters consistent for the future




commit 9f02c611539b4524e34b5d078ee56e8cfd0877ee
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 28 17:08:23 2021 -0700

    keep iters consistent for the future

 gtksourceview/vim/gtk-source-vim-insert.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-insert.c b/gtksourceview/vim/gtk-source-vim-insert.c
index 51378069..1cd544e7 100644
--- a/gtksourceview/vim/gtk-source-vim-insert.c
+++ b/gtksourceview/vim/gtk-source-vim-insert.c
@@ -253,6 +253,7 @@ gtk_source_vim_insert_prepare (GtkSourceVimInsert *self)
                        gtk_text_buffer_insert (GTK_TEXT_BUFFER (buffer), &iter, self->suffix, -1);
                        gtk_text_iter_backward_chars (&iter, len);
                        gtk_source_vim_state_select (GTK_SOURCE_VIM_STATE (self), &iter, &iter);
+                       selection = iter;
                }
        }
 


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