[gtksourceview/wip/chergert/vim: 278/363] move after command
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 278/363] move after command
- Date: Mon, 8 Nov 2021 19:53:53 +0000 (UTC)
commit f446bd2bb3e8d47b279d462c26577097473a6fcc
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]