From 5d593abfb8107d818373f7931c42c1bf33dd0f16 Mon Sep 17 00:00:00 2001 From: Alexey Dubinin Date: Wed, 28 Sep 2016 17:49:39 +0300 Subject: Replace win.file.lines with win.file:content for better performance --- vis.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vis.lua') diff --git a/vis.lua b/vis.lua index 8c90fe5..76d4e2e 100644 --- a/vis.lua +++ b/vis.lua @@ -193,7 +193,7 @@ vis.ftdetect.filetypes = { -- array of filetype detecting functions (win, filename, shebang, app) -> string vis.ftdetect.customdetectors = { function(win) - if win.file.lines[1] ~= nil and win.file.lines[1]:sub(1, 5) == '