[gtksourceview/wip/chergert/vim] clear before moving cursor
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] clear before moving cursor
- Date: Fri, 29 Oct 2021 20:00:01 +0000 (UTC)
commit 684d2bb44afa55224a8fff0280617b9670766aa3
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 29 12:59:23 2021 -0700
clear before moving cursor
gtksourceview/vim/gtk-source-vim-normal.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index b45e2dc4..8a541bf6 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -951,13 +951,13 @@ gtk_source_vim_normal_resume (GtkSourceVimState *state,
insert = gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (buffer));
view = gtk_source_vim_state_get_view (state);
+ gtk_source_vim_normal_clear (GTK_SOURCE_VIM_NORMAL (state));
+ gtk_source_vim_state_set_overwrite (state, TRUE);
+
/* Go back one character if we exited replace/insert state */
if (GTK_SOURCE_IS_VIM_INSERT (from) || GTK_SOURCE_IS_VIM_REPLACE (from))
go_backward_char (self);
- gtk_source_vim_normal_clear (GTK_SOURCE_VIM_NORMAL (state));
- gtk_source_vim_state_set_overwrite (state, TRUE);
-
/* Always scroll the insert mark onscreen */
gtk_text_view_scroll_mark_onscreen (GTK_TEXT_VIEW (view), insert);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]