diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 02:57:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 02:57:13 +0800 |
commit | 838ce36fdd7abdff0b4cab5e67c2500325178805 (patch) | |
tree | bffd74f604cbcf666ca5d41d1c9f5750e48e1db9 /script/proto | |
parent | 0ff98557a45c25d7a49520e57f49561a62300f35 (diff) | |
download | lua-language-server-838ce36fdd7abdff0b4cab5e67c2500325178805.zip |
update
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 9c75f056..3f5ddebc 100644 --- a/script/proto/converter.lua +++ b/script/proto/converter.lua @@ -13,7 +13,7 @@ local function rawPackPosition(uri, pos) if col > 0 then local state = files.getState(uri) local text = files.getText(uri) - if text then + if state and text then local lineOffset = state.lines[row] if lineOffset then local start = lineOffset |