summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-26 15:26:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-26 15:26:50 +0800
commit3d21c63ec3e330dc717008b37f8fb1fa38d41862 (patch)
tree52901f9896ba21e8b043169ebe95b9f1c2a2f636
parent086410d0b4d0ddd6389ac4e73159271dffac2981 (diff)
downloadlua-language-server-3d21c63ec3e330dc717008b37f8fb1fa38d41862.zip
only checks `1`
-rw-r--r--script/core/diagnostics/count-down-loop.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/count-down-loop.lua b/script/core/diagnostics/count-down-loop.lua
index 88cb06ab..bd6e5ee3 100644
--- a/script/core/diagnostics/count-down-loop.lua
+++ b/script/core/diagnostics/count-down-loop.lua
@@ -18,7 +18,7 @@ return function (uri, callback)
if minNumber and maxNumber and minNumber <= maxNumber then
return
end
- if not minNumber and maxNumber > 1 then
+ if not minNumber and maxNumber ~= 1 then
return
end
if not source.step then