[gtksourceview/wip/chergert/vim: 200/293] dont apply motion until delete operation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 200/293] dont apply motion until delete operation
- Date: Fri, 5 Nov 2021 04:23:04 +0000 (UTC)
commit 8f83154ce8436a70e20b0c98d4e2529465f9ac1b
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]