[gtksourceview/wip/chergert/vim] scroll cursor mark on screen in visual
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] scroll cursor mark on screen in visual
- Date: Sat, 30 Oct 2021 21:37:45 +0000 (UTC)
commit d390a27753e942a5dcf8c1a76431165e35b2d966
Author: Christian Hergert <chergert redhat com>
Date: Sat Oct 30 14:37:41 2021 -0700
scroll cursor mark on screen in visual
gtksourceview/vim/gtk-source-vim-visual.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-visual.c b/gtksourceview/vim/gtk-source-vim-visual.c
index 0f673303..3cb7b37e 100644
--- a/gtksourceview/vim/gtk-source-vim-visual.c
+++ b/gtksourceview/vim/gtk-source-vim-visual.c
@@ -132,6 +132,8 @@ gtk_source_vim_visual_track_line (GtkSourceVimVisual *self)
static void
gtk_source_vim_visual_track_motion (GtkSourceVimVisual *self)
{
+ GtkSourceView *view;
+
g_assert (GTK_SOURCE_IS_VIM_VISUAL (self));
switch (self->mode)
@@ -148,6 +150,9 @@ gtk_source_vim_visual_track_motion (GtkSourceVimVisual *self)
default:
break;
}
+
+ view = gtk_source_vim_state_get_view (GTK_SOURCE_VIM_STATE (self));
+ gtk_text_view_scroll_mark_onscreen (GTK_TEXT_VIEW (view), self->cursor);
}
static const char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]