[gnome-builder] vim: be smarter about xalign when scrolling to iter



commit 41e2c6e54bcc662b4a533f94c19637e1743e41ce
Author: Christian Hergert <christian hergert me>
Date:   Mon Oct 6 15:53:43 2014 -0700

    vim: be smarter about xalign when scrolling to iter

 src/editor/gb-editor-vim.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index e7bbb4d..9e98a1a 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -2263,7 +2263,7 @@ gb_editor_vim_move_to_iter (GbEditorVim *vim,
     gtk_text_buffer_select_range (buffer, iter, iter);
 
   gtk_text_view_scroll_to_iter (vim->priv->text_view, iter, 0.0,
-                                TRUE, 0.0, yalign);
+                                TRUE, 0.5, yalign);
 }
 
 static void
@@ -4007,17 +4007,17 @@ gb_editor_vim_cmd_center (GbEditorVim *vim,
     {
     case 'b':
       gtk_text_view_scroll_to_iter (vim->priv->text_view, &iter, 0.0, TRUE,
-                                    0.0, 1.0);
+                                    0.5, 1.0);
       break;
 
     case 't':
       gtk_text_view_scroll_to_iter (vim->priv->text_view, &iter, 0.0, TRUE,
-                                    0.0, 0.0);
+                                    0.5, 0.0);
       break;
 
     case 'z':
       gtk_text_view_scroll_to_iter (vim->priv->text_view, &iter, 0.0, TRUE,
-                                    0.0, 0.5);
+                                    0.5, 0.5);
       break;
 
     default:


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