1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-27 09:59:29 +00:00

Fix end_column being off by one in cancheck

This commit is contained in:
Étienne Fildadut 2020-04-07 00:16:39 +02:00
parent 03516abb45
commit 7add585c03

View file

@ -129,14 +129,14 @@ local function check(can)
-- found -- found
if start then if start then
pos = stop pos = stop
warning.can_column, warning.can_end_column = start, stop warning.can_column, warning.can_end_column = start, stop-1
can_n = can_n + 1 can_n = can_n + 1
else else
break break
end end
end end
-- AFAIK, prev_column and prev_column_end are not displayed in any warning so we don't need to recalculate them for Candran. -- AFAIK, prev_column and prev_end_column are not displayed in any warning so we don't need to recalculate them for Candran.
end end
end end
end end