From 521263a2c67d2b5df507858dcd240a9e42790780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 27 Sep 2014 19:51:29 +0200 Subject: Implement 'zt', 'zz', 'zb' In particular 'zb' might not work if there are wrapped lines involved. --- window.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'window.h') 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*); -- cgit v1.2.3