From ca222a7cc0d5a55312d96000a617e11d7a9996a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 3 Apr 2015 18:39:22 +0200 Subject: Add option to display relative line numbers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :set rnu Based on a patch by Sebastian Götte. --- window.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'window.h') diff --git a/window.h b/window.h index 8be069e..5c8cf18 100644 --- a/window.h +++ b/window.h @@ -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 -- cgit v1.2.3