[gtksourceview/wip/chergert/vim] clear marks



commit 03583522763aaad0011a56f75a91b0de30e602d3
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 31 12:51:17 2021 -0700

    clear marks

 gtksourceview/vim/gtk-source-vim-motion.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-motion.c b/gtksourceview/vim/gtk-source-vim-motion.c
index 1251e65c..ea4c828d 100644
--- a/gtksourceview/vim/gtk-source-vim-motion.c
+++ b/gtksourceview/vim/gtk-source-vim-motion.c
@@ -1771,6 +1771,12 @@ gtk_source_vim_motion_chain (GtkSourceVimMotion *self,
        g_return_val_if_fail (!self || GTK_SOURCE_IS_VIM_MOTION (self), NULL);
        g_return_val_if_fail (!other || GTK_SOURCE_IS_VIM_MOTION (other), NULL);
 
+       if (self)
+               gtk_source_vim_motion_set_mark (self, NULL);
+
+       if (other)
+               gtk_source_vim_motion_set_mark (other, NULL);
+
        if (!self && other)
                return g_object_ref (GTK_SOURCE_VIM_STATE (other));
 


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