diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 18:39:01 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 18:39:01 +0200 |
| commit | 25ba078b62ada6276217ca35b12b8dabf3a2b439 (patch) | |
| tree | b5a25e3a1882c5eb36c7b2330fee27d7cd0847a9 /window.h | |
| parent | 1ae7600bdc302da4647d5910bea8f2437646fb70 (diff) | |
| download | vis-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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*); |
