diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-23 19:28:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-23 19:28:34 +0800 |
commit | 5e6897bc1a25b936724af6eeb5fc463a8d395d1e (patch) | |
tree | c1c12d3b81087d201dfc2ffb8b3535ff73ba6965 /script/proto | |
parent | 127f0c549bb46d218e4b81db6c4ffd40394927ae (diff) | |
download | lua-language-server-5e6897bc1a25b936724af6eeb5fc463a8d395d1e.zip |
fix
Diffstat (limited to 'script/proto')
-rw-r--r-- | script/proto/converter.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/proto/converter.lua b/script/proto/converter.lua index 9ff7e4dd..53b65b12 100644 --- a/script/proto/converter.lua +++ b/script/proto/converter.lua @@ -35,7 +35,7 @@ function m.unpackPosition(uri, position) local text = files.getText(uri) if text then local lineOffset = state.lines[row] - col = utf8.offset(text, col + 1, lineOffset) - 1 + col = utf8.offset(text, col + 1, lineOffset) - lineOffset end end local pos = guide.positionOf(row, col) |