From 76b2e3864d3fa35971ef308a62be63560d99bae6 Mon Sep 17 00:00:00 2001 From: weihe Date: Wed, 12 Aug 2015 15:26:41 +0800 Subject: [PATCH] now QuickFix can correctly open Lua file to edit but not the luac binary when we use extend luac to check globals --- misc/lua-ftplugin/globals.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/lua-ftplugin/globals.lua b/misc/lua-ftplugin/globals.lua index 854b8a5..c3e8af6 100755 --- a/misc/lua-ftplugin/globals.lua +++ b/misc/lua-ftplugin/globals.lua @@ -42,6 +42,6 @@ for _, match in ipairs(matches) do varname = varname .. '()' end if severity == 'E' or severity == 'W' or verbose then - print(template:format(arg[1], match.lnum, operation, status, varname, severity)) + print(template:format(arg[2], match.lnum, operation, status, varname, severity)) end end