[gnome-builder] source-vim: Ensure scroll for line0 and line start



commit 400f24fbcb49cd18659dbea2fc762200ceede7c3
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue Jan 13 14:38:43 2015 +0100

    source-vim: Ensure scroll for line0 and line start
    
    Those also need to make sure the scroll is correct and the cursor
    visible
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742855

 src/vim/gb-source-vim.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index 1e677d9..9eeef83 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -854,6 +854,8 @@ gb_source_vim_move_line0 (GbSourceVim *vim)
     gtk_text_buffer_select_range (buffer, &iter, &iter);
 
   vim->priv->target_line_offset = gb_source_vim_get_line_offset (vim);
+
+  gb_source_vim_ensure_scroll (vim);
 }
 
 static void
@@ -906,6 +908,8 @@ gb_source_vim_move_line_start (GbSourceVim *vim,
     gtk_text_buffer_select_range (buffer, &iter, &iter);
 
   vim->priv->target_line_offset = gb_source_vim_get_line_offset (vim);
+
+  gb_source_vim_ensure_scroll (vim);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]