From 25ba078b62ada6276217ca35b12b8dabf3a2b439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 13 Sep 2014 18:39:01 +0200 Subject: Add movements 'H', 'M', 'L' H moves to the n-th window line from top M moves to the middle window line L moves to the n-th window line from bottom --- window.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'window.h') diff --git a/window.h b/window.h index e7d5b0b..d575341 100644 --- a/window.h +++ b/window.h @@ -33,6 +33,8 @@ size_t window_char_next(Win*); size_t window_char_prev(Win*); size_t window_line_down(Win*); size_t window_line_up(Win*); +/* place the cursor at the start ot the n-th window line, counting from 1 */ +size_t window_line_goto(Win*, int n); /* get cursor position in bytes from start of the file */ size_t window_cursor_get(Win*); -- cgit v1.2.3