aboutsummaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-27 19:51:29 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-27 19:51:29 +0200
commit521263a2c67d2b5df507858dcd240a9e42790780 (patch)
tree2967b3b921f4e5568825367bbeb367f3f918a19d /window.h
parentab264837f7c127ba8ff4666f9c4ed94efd485af0 (diff)
downloadvis-521263a2c67d2b5df507858dcd240a9e42790780.tar.gz
vis-521263a2c67d2b5df507858dcd240a9e42790780.tar.xz
Implement 'zt', 'zz', 'zb'
In particular 'zb' might not work if there are wrapped lines involved.
Diffstat (limited to 'window.h')
-rw-r--r--window.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/window.h b/window.h
index 6c4b72f..4d00b48 100644
--- a/window.h
+++ b/window.h
@@ -58,6 +58,10 @@ void window_scroll_to(Win*, size_t pos);
* position is visible. if the position is in the middle of a line, try to
* adjust the viewport in such a way that the whole line is displayed */
void window_cursor_to(Win*, size_t pos);
+/* redraw current cursor line at top/center/bottom of window */
+void window_redraw_top(Win*);
+void window_redraw_center(Win*);
+void window_redraw_bottom(Win*);
/* start selected area at current cursor position. further cursor movements will
* affect the selected region. */
void window_selection_start(Win*);