aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-10-03 13:05:51 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-10-03 13:05:51 +0200
commit5aa0a68d3d5af745b97ddec576f0bbfbe18ed2ab (patch)
tree46e601387828285d253f6b08da7339ecf404de06 /view.h
parent2f337a347bf1ec9cfeeb11232ad0fa72d4a9990f (diff)
downloadvis-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/view.h b/view.h
index 8cd2ce3..07fedf4 100644
--- a/view.h
+++ b/view.h
@@ -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);