fix bug in 'TextBuilderUtils.initEnv'. When we have a wide enough space that we can centre the text, we set the 'scrollColumnEnd' field to the length of how many columns we can display. However, we want 'scrollColumnEnd' to contain the last column that can be drawn, not the length of how many columns we can draw. So now we have fixed tis.

This commit is contained in:
2025-09-13 01:16:29 +01:00
parent f2ec6b80c2
commit 9e76a38ece

View File

@@ -133,7 +133,7 @@ struct
, startY = 5
, scrollColumnStart = visualScrollColumn
, scrollColumnEnd = TC.textLineCount
, scrollColumnEnd = visualScrollColumn + TC.textLineCount
, lastLineNumber =
let