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.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/core/diagnostics/newfield-call.lua b/script/core/diagnostics/newfield-call.lua
index e22dcffe..bd114959 100644
--- a/script/core/diagnostics/newfield-call.lua
+++ b/script/core/diagnostics/newfield-call.lua
@@ -2,6 +2,7 @@ local files = require 'files'
local guide = require 'parser.guide'
local lang = require 'language'
local await = require 'await'
+local sub = require 'core.substring'
---@async
return function (uri, callback)
@@ -36,8 +37,8 @@ return function (uri, callback)
start = call.start,
finish = call.finish,
message = lang.script('DIAG_PREFIELD_CALL'
- , text:sub(func.start, func.finish)
- , text:sub(args.start, args.finish)
+ , sub(state)(func.start + 1, func.finish)
+ , sub(state)(args.start + 1, args.finish)
)
}
end