aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-05-22 17:31:46 +0200
committerMarc André Tanner <mat@brain-dump.org>2018-05-30 16:27:45 +0200
commitc0eb121a7bdb6e9edf7fb97add80a57bff1feb5b (patch)
tree354a0b1d8c7774c8e912ab08b46bb13ed83c95a1 /sam.c
parentd9b8f7bda83e746617ce1001972ba255ffdebed7 (diff)
downloadvis-c0eb121a7bdb6e9edf7fb97add80a57bff1feb5b.tar.gz
vis-c0eb121a7bdb6e9edf7fb97add80a57bff1feb5b.tar.xz
vis: add loadmethod option
Valid values are `read`, `mmap` or `auto`.
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c6
1 files changed, 6 insertions, 0 deletions
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,