From c0eb121a7bdb6e9edf7fb97add80a57bff1feb5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 22 May 2018 17:31:46 +0200 Subject: vis: add loadmethod option Valid values are `read`, `mmap` or `auto`. --- sam.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sam.c') diff --git a/sam.c b/sam.c index 6665043..3b7aaf3 100644 --- a/sam.c +++ b/sam.c @@ -295,6 +295,7 @@ enum { OPTION_CURSOR_LINE, OPTION_COLOR_COLUMN, OPTION_SAVE_METHOD, + OPTION_LOAD_METHOD, OPTION_CHANGE_256COLORS, }; @@ -369,6 +370,11 @@ static const OptionDef options[] = { VIS_OPTION_TYPE_STRING|VIS_OPTION_NEED_WINDOW, VIS_HELP("Save method to use for current file 'auto', 'atomic' or 'inplace'") }, + [OPTION_LOAD_METHOD] = { + { "loadmethod" }, + VIS_OPTION_TYPE_STRING, + VIS_HELP("How to load existing files 'auto', 'read' or 'mmap'") + }, [OPTION_CHANGE_256COLORS] = { { "change-256colors" }, VIS_OPTION_TYPE_BOOL, -- cgit v1.2.3