jcs
/textview
/amendments
/77
TVCalcLinesLocked: Optimize wrapping
jcs made amendment 77 about 1 month ago
--- tv_layout.c Wed Oct 14 21:51:24 2026
+++ tv_layout.c Wed Oct 14 22:48:58 2026
@@ -257,6 +257,11 @@ reload_chunk:
line->end = n;
line->rect.right = chunk->end_right;
+ if (n >= chunk->start) {
+ n = tv->last_space;
+ continue;
+ }
+
while (n < chunk->start) {
if (!chunk->prev_chunk) {
/* how did we get here? */