[gtksourceview/wip/chergert/vim] dont apply motion until delete operation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] dont apply motion until delete operation
- Date: Tue, 2 Nov 2021 16:37:50 +0000 (UTC)
commit ed1d00ceab37f6a150aadd8fd0f9aaddd3cc36fb
Author: Christian Hergert <chergert redhat com>
Date: Tue Nov 2 09:35:21 2021 -0700
dont apply motion until delete operation
gtksourceview/vim/gtk-source-vim-delete.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-delete.c b/gtksourceview/vim/gtk-source-vim-delete.c
index 08aa3c10..60474fa4 100644
--- a/gtksourceview/vim/gtk-source-vim-delete.c
+++ b/gtksourceview/vim/gtk-source-vim-delete.c
@@ -178,7 +178,11 @@ gtk_source_vim_delete_enter (GtkSourceVimState *state)
gtk_source_vim_state_begin_user_action (state);
if (self->motion == NULL)
- gtk_source_vim_state_push (state, gtk_source_vim_motion_new ());
+ {
+ self->motion = GTK_SOURCE_VIM_MOTION (gtk_source_vim_motion_new ());
+ gtk_source_vim_motion_set_apply_on_leave (self->motion, FALSE);
+ gtk_source_vim_state_push (state, g_object_ref (GTK_SOURCE_VIM_STATE (self->motion)));
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]