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. --- ui.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ui.h') 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 -- cgit v1.2.3