fix getScrollColumn calculation: the right calculation is to subtract the column number by how many columns we can fit

This commit is contained in:
2025-09-11 17:09:43 +01:00
parent 77439acef6
commit 580f014481
2 changed files with 4 additions and 1 deletions

View File

@@ -16,7 +16,9 @@ struct
if windowWidth >= TC.textLineWidth then TC.textLineCount
else windowWidth div TC.xSpace
in
columnDifference mod howManyColumnsCanWeFit
if columnDifference < howManyColumnsCanWeFit then 0
else
columnDifference - howManyColumnsCanWeFit
end
end
end