aboutsummaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-13 18:39:01 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-13 18:39:01 +0200
commit25ba078b62ada6276217ca35b12b8dabf3a2b439 (patch)
treeb5a25e3a1882c5eb36c7b2330fee27d7cd0847a9 /window.h
parent1ae7600bdc302da4647d5910bea8f2437646fb70 (diff)
downloadvis-25ba078b62ada6276217ca35b12b8dabf3a2b439.tar.gz
vis-25ba078b62ada6276217ca35b12b8dabf3a2b439.tar.xz
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
Diffstat (limited to 'window.h')
-rw-r--r--window.h2
1 files changed, 2 insertions, 0 deletions
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*);