diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-29 14:26:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-29 14:26:41 +0800 |
commit | 012dc21e55493b0c0d020163e58206a41acee266 (patch) | |
tree | 509147bbf8c94351ba718de6f77b74f649a34fd7 | |
parent | de7ecfaa8305cf7e02f8ffd3368f55837d30d5c9 (diff) | |
download | lua-language-server-012dc21e55493b0c0d020163e58206a41acee266.zip |
fix test
-rw-r--r-- | script/core/keyword.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/keyword.lua b/script/core/keyword.lua index 73892f18..b8e37605 100644 --- a/script/core/keyword.lua +++ b/script/core/keyword.lua @@ -277,8 +277,8 @@ until $1" or first == 'elseif' then local startRow = guide.positionOf(lines, info.start) local finishRow = guide.positionOf(lines, pos) - local startSp = info.text:match('^%s*', lines[startRow].start) - local finishSp = info.text:match('^%s*', lines[finishRow].start) + local startSp = info.text:match('^%s*', lines[startRow].start + 1) + local finishSp = info.text:match('^%s*', lines[finishRow].start + 1) if startSp == finishSp then return false end |