aboutsummaryrefslogtreecommitdiff
path: root/vis.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 /vis.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 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index 64ad3ba..03b01ab 100644
--- a/vis.c
+++ b/vis.c
@@ -192,7 +192,7 @@ static File *file_new(Vis *vis, const char *name) {
}
File *file = NULL;
- Text *text = text_load(name);
+ Text *text = text_load_method(name, vis->load_method);
if (!text && name && errno == ENOENT)
text = text_load(NULL);
if (!text)