summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/files.lua b/script/files.lua
index 0e62a740..98d9b83c 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -744,7 +744,7 @@ function m.position(uri, offset, leftOrRight)
lines = m.getOriginLines(uri)
text = m.getOriginText(uri)
end
- local row, col = guide.positionOf(offset)
+ local row, col = guide.rowColOf(offset)
local start, finish = guide.lineRange(lines, row, true)
start = start + 1
if col <= finish - start + 1 then