Skip to content

Commit dfab76e

Browse files
committed
fix #1144
1 parent f94bfa5 commit dfab76e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* `FIX` [#1131](https://github.com/sumneko/lua-language-server/issues/1131)
1111
* `FIX` [#1134](https://github.com/sumneko/lua-language-server/issues/1134)
1212
* `FIX` [#1141](https://github.com/sumneko/lua-language-server/issues/1141)
13+
* `FIX` [#1144](https://github.com/sumneko/lua-language-server/issues/1144)
1314

1415
## 3.2.3
1516
`2022-5-16`

script/core/folding.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ local care = {
6666
['repeat'] = function (source, text, results)
6767
local start = source.start
6868
local finish = source.keyword[#source.keyword]
69-
if text:sub(finish - #'until' + 1, finish) ~= 'until' then
69+
-- must end with 'until'
70+
if #source.keyword ~= 4 then
7071
return
7172
end
7273
local folding = {

0 commit comments

Comments
 (0)