diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/core/diagnostics/count-down-loop.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/diagnostics/count-down-loop.lua b/script/core/diagnostics/count-down-loop.lua index b64391fd..8cd26dcd 100644 --- a/script/core/diagnostics/count-down-loop.lua +++ b/script/core/diagnostics/count-down-loop.lua @@ -17,6 +17,10 @@ return function (uri, callback) if maxNumer ~= 1 then return end + local minNumber = source.loc and source.loc.value and source.loc.value.type == 'number' and tonumber(source.loc.value[1]) + if minNumber and minNumber <= 1 then + return + end if not source.step then callback { start = source.loc.value.start, |