aboutsummaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-04-03 18:39:22 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-03 23:55:22 +0200
commitca222a7cc0d5a55312d96000a617e11d7a9996a1 (patch)
treee5aee5e31ac06ff8bc81d587687ae874602577d2 /ui.h
parent9915b9fd0b8e59bda9e334eb9485c473b06055c9 (diff)
downloadvis-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 'ui.h')
-rw-r--r--ui.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui.h b/ui.h
index 92123db..62a79dd 100644
--- a/ui.h
+++ b/ui.h
@@ -10,8 +10,9 @@ enum UiLayout {
};
enum UiOption {
- UI_OPTION_LINE_NUMBERS_NONE,
- UI_OPTION_LINE_NUMBERS_ABSOLUTE,
+ UI_OPTION_LINE_NUMBERS_NONE = 0,
+ UI_OPTION_LINE_NUMBERS_ABSOLUTE = 1 << 0,
+ UI_OPTION_LINE_NUMBERS_RELATIVE = 1 << 1,
};
#include <stdbool.h>