aboutsummaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-12-23 13:15:42 +0100
committerMarc André Tanner <mat@brain-dump.org>2014-12-23 13:24:25 +0100
commit3314a2843f3c940e6fb96d8612f23172832f3804 (patch)
tree125540a08f818c9dd65125010e9683b611cdd676 /window.h
parentd47c31e12e0e2aa691b861a0da884f785664ba36 (diff)
downloadvis-3314a2843f3c940e6fb96d8612f23172832f3804.tar.gz
vis-3314a2843f3c940e6fb96d8612f23172832f3804.tar.xz
Optionally display line numbers alongside file
Enable/disable with :set number [0|1]
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 4d00b48..eae7b17 100644
--- a/window.h
+++ b/window.h
@@ -76,6 +76,8 @@ 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*);
+/* whether to show line numbers to the left of the text content */
+void window_line_numbers_show(Win*, bool show);
/* 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);