summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/newfield-call.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/newfield-call.lua')
-rw-r--r--script/core/diagnostics/newfield-call.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/diagnostics/newfield-call.lua b/script/core/diagnostics/newfield-call.lua
index fe86ad66..61d52dd2 100644
--- a/script/core/diagnostics/newfield-call.lua
+++ b/script/core/diagnostics/newfield-call.lua
@@ -27,8 +27,8 @@ return function (uri, callback)
local func = call.node
local args = call.args
if args then
- local funcLine = guide.positionOf(lines, func.finish)
- local argsLine = guide.positionOf(lines, args.start)
+ local funcLine = guide.positionOf(func.finish)
+ local argsLine = guide.positionOf(args.start)
if argsLine > funcLine then
callback {
start = call.start,