summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-18 17:28:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-18 17:28:21 +0800
commitb45a90132438bb2d84b7376066e5ff409833a13f (patch)
treeb87782402cd4c5f275aa880d1c9bd82b5b5b1103 /script/parser/guide.lua
parenta7fcbe21fa6e06c46875fd8abb6d2eacb1db844e (diff)
downloadlua-language-server-b45a90132438bb2d84b7376066e5ff409833a13f.zip
update
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index af623753..4a0ca21f 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -781,7 +781,7 @@ function m.offsetToPosition(state, offset)
end
break
end
- local start = lines[row]
+ local start = lines[row] - 1
if start > offset then
right = row
else