[geany/geany-plugins] 913cf5: git-changebar: Fix tooltips near the end of the files

Colomban Wendling git-noreply at xxxxx
Tue Feb 17 22:38:58 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 17 Feb 2015 22:38:58 UTC
Commit:      913cf5d5c78a807fcf0cad21b8088d9ee811d9f8
             https://github.com/geany/geany-plugins/commit/913cf5d5c78a807fcf0cad21b8088d9ee811d9f8

Log Message:
-----------
git-changebar: Fix tooltips near the end of the files

Enable extra scrolling after the file's end so that even the last line
can be displayed on top of the view at any size.


Modified Paths:
--------------
    git-changebar/src/gcb-plugin.c

Modified: git-changebar/src/gcb-plugin.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -633,6 +633,10 @@ get_widget_for_blob_range (GeanyDocument   *doc,
     g_free (buf);
   }
   
+  /* we need to enable extra scroll after last line so that SETFIRSTVISIBLELINE
+   * really places the line we want on top of the view, even if the line is
+   * close to the end and wouldn't possibly end on top otherwise */
+  scintilla_send_message (sci, SCI_SETENDATLASTLINE, 0, 0);
   scintilla_send_message (sci, SCI_SETFIRSTVISIBLELINE, line_start, 0);
   
   /* compute the size of the area we want to see */



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list