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`. --- vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis.c') 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) -- cgit v1.2.3