AmendHub

jcs

/

textview

/

amendments

Amendments on November 17, 2026

tv_draw: Abstract scroll guts to TVScrollParts so users can call it

This would be useful for handling Page Down the same way as clicking
inPageDown, by now calling TVScrollPart(tv, inPageDown, false).
jcs made amendment 95 8 days ago

Amendments on November 11, 2026

TVOffsetFor*: Add caret flag, add TVScrollToOffset

Finding the offset for a click depends on whether the caller wants
to find text displayed at it or whether they are selecting text which
can start outside of that text.
jcs made amendment 94 14 days ago

Amendments on November 5, 2026

TVFindStyle: Avoid GetFontInfo for styles with same font

Each style can have the same font but with different bitmap info,
and in these cases we can avoid GetFontInfo and re-use the existing
width cache.
jcs made amendment 93 20 days ago

TVDispose: Don't use TVClear, it redraws

We are likely in a window teardown where we shouldn't be drawing.
 
Also TVClear was leaving the first of each slab allocated.
jcs made amendment 92 20 days ago

util: Sync with upstream

jcs made amendment 91 20 days ago

Amendments on November 3, 2026

TVAppendLocked: Remember the first line touched

When we're running with autocalc off, this will speed up redrawing
when it's turned back on.
jcs made amendment 89 22 days ago

Amendments on November 2, 2026

TVResize: Don't scroll past the end after resize

jcs made amendment 88 23 days ago

TVCalcLinesLocked: Add parens in indent calculation

jcs made amendment 87 23 days ago

TVTrackScrollControl: Check for command down properly

jcs made amendment 86 23 days ago

TVAppendLocked: Check for fromline first

jcs made amendment 85 23 days ago

Amendments on October 15, 2026

*: Minor cleanups

jcs made amendment 84 about 1 month ago

TVUpdateScrollbar+TVScroll: Cache TVScrollDivisor result

jcs made amendment 83 about 1 month ago

Amendments on October 14, 2026

TVCalcLinesLocked: Simplify walking through text_slab_data

jcs made amendment 81 about 1 month ago

TVResize+TVFindInRectLocked: Avoid manual searches

jcs made amendment 80 about 1 month ago

textview.h: Use 512 for TV_LINE_GROUP_NLINES so CPU can shift

Avoids having to do multiplication and division of 500
jcs made amendment 79 about 1 month ago

TVTrackScrollControl: Use TVLineForY

jcs made amendment 78 about 1 month ago

TVCalcLinesLocked: Optimize wrapping

jcs made amendment 77 about 1 month ago