[gtksourceview/wip/chergert/vim] move after command
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] move after command
- Date: Thu, 4 Nov 2021 00:38:58 +0000 (UTC)
commit 1db9e70db16d2f3989f370263ad7e7540effc98f
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 3 17:38:54 2021 -0700
move after command
gtksourceview/vim/gtk-source-vim-command.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-command.c b/gtksourceview/vim/gtk-source-vim-command.c
index 2c717f1d..592fb818 100644
--- a/gtksourceview/vim/gtk-source-vim-command.c
+++ b/gtksourceview/vim/gtk-source-vim-command.c
@@ -74,7 +74,13 @@ gtk_source_vim_command_format (GtkSourceVimCommand *self)
gtk_text_buffer_begin_user_action (GTK_TEXT_BUFFER (buffer));
gtk_source_vim_emit_format (GTK_SOURCE_VIM (root), &iter, &selection);
gtk_text_buffer_end_user_action (GTK_TEXT_BUFFER (buffer));
+
+ gtk_text_iter_order (&iter, &selection);
+
+ gtk_text_buffer_select_range (GTK_TEXT_BUFFER (buffer), &iter, &iter);
}
+
+ self->ignore_mark = TRUE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]