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:
parent
03516abb45
commit
7add585c03
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue