diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-04-03 18:39:22 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-03 23:55:22 +0200 |
| commit | ca222a7cc0d5a55312d96000a617e11d7a9996a1 (patch) | |
| tree | e5aee5e31ac06ff8bc81d587687ae874602577d2 /window.h | |
| parent | 9915b9fd0b8e59bda9e334eb9485c473b06055c9 (diff) | |
| download | vis-ca222a7cc0d5a55312d96000a617e11d7a9996a1.tar.gz vis-ca222a7cc0d5a55312d96000a617e11d7a9996a1.tar.xz | |
Add option to display relative line numbers
:set rnu
Based on a patch by Sebastian Götte.
Diffstat (limited to 'window.h')
| -rw-r--r-- | window.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,6 +76,8 @@ size_t window_screenline_goto(Win*, int n); /* get cursor position in bytes from start of the file */ size_t window_cursor_get(Win*); + +const Line *window_lines_get(Win*); /* get cursor position in terms of screen coordinates */ CursorPos window_cursor_getpos(Win*); /* moves window viewport in direction until pos is visible. should only be @@ -103,7 +105,5 @@ Filerange window_viewport_get(Win*); /* associate a set of syntax highlighting rules to this window. */ void window_syntax_set(Win*, Syntax*); Syntax *window_syntax_get(Win*); -/* register a user defined function which will be called whenever the cursor has moved */ -void window_cursor_watch(Win *win, void (*cursor_moved)(Win*, void*), void *data); #endif |
