Commit: fa26a28f37532e1b098e577caa42653886581572
Parent: a7852d960697dd9ffe98a1fbe5850d13d699e2c9
Author: Randy Palamar
Date: Thu, 17 Aug 2023 09:46:50 -0600
fix check for 1 character range
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init.lua b/init.lua
@@ -27,7 +27,7 @@ lint.logger = function(str, level)
end
local run_on_file = function(cmd, file, range, modify)
- if range == nil or range.finish - range.finish <= 1 then
+ if range == nil or range.finish - range.start <= 1 then
range = {start = 0, finish = file.size}
end
local ret, ostr, estr = vis:pipe(file, range, cmd)