diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-10-03 13:05:51 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-10-03 13:05:51 +0200 |
| commit | 5aa0a68d3d5af745b97ddec576f0bbfbe18ed2ab (patch) | |
| tree | 46e601387828285d253f6b08da7339ecf404de06 /view.h | |
| parent | 2f337a347bf1ec9cfeeb11232ad0fa72d4a9990f (diff) | |
| download | vis-5aa0a68d3d5af745b97ddec576f0bbfbe18ed2ab.tar.gz vis-5aa0a68d3d5af745b97ddec576f0bbfbe18ed2ab.tar.xz | |
vis: improve cursor positioning after scrolling
Make cursor placement after scrolling (half) pages up/down less arbitrary.
Close #390, fix #391
Diffstat (limited to 'view.h')
| -rw-r--r-- | view.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -73,6 +73,10 @@ size_t view_slide_down(View*, int lines); * visible line, try to preserve the column position */ size_t view_scroll_up(View*, int lines); size_t view_scroll_down(View*, int lines); +size_t view_scroll_page_up(View*); +size_t view_scroll_page_down(View*); +size_t view_scroll_halfpage_up(View*); +size_t view_scroll_halfpage_down(View*); /* place the cursor at the start ot the n-th window line, counting from 1 */ size_t view_screenline_goto(View*, int n); |
