AmendHub

jcs

/

textview

/

amendments

Amendments on October 14, 2026

TVGetTextSlab: Cache last used slab, it's probably the same

Avoids walking the slab list every time. Also in TVApplyStyle, check
that we actually need to call Text{Font,Face,Size}.
jcs made amendment 75 about 1 month ago

TVNew: Free first_style_slab on failure

jcs made amendment 74 about 1 month ago

TVDrawMatch: Properly account for tv->scrolled.left

jcs made amendment 73 about 1 month ago

TVAppendLocked: Fix incremental redraw on word-wrapping

jcs made amendment 71 about 1 month ago

TVAppendLocked: Check for slab full first

jcs made amendment 69 about 1 month ago

TVFindStyle: When creating a new slab, factor in bitmap size

If the bitmap size is bigger than TV_STYLE_SLAB_SIZE, we'll create a
slab that gets overflowed.
jcs made amendment 68 about 1 month ago

*: Add text selection helpers

jcs made amendment 67 about 1 month ago

select: Add text selection module

jcs made amendment 66 about 1 month ago

Amendments on September 23, 2026

*: Split up into logical files for storage, layout, and drawing

This file is getting huge and hard to manage. We can always cat
everything together later for a single distributable file.
jcs made amendment 65 2 months ago

Amendments on December 17, 2025

util: Sync with upstream

jcs made amendment 63 11 months ago

Amendments on December 20, 2024

TVCalcLinesLocked: When a style starts on a new line, don't inherit

A big size line with a newline, followed by a line of text with a
small size font shouldn't be as tall as the big size.
jcs made amendment 61 about 1 year ago

Amendments on December 18, 2024


Amendments on December 15, 2024

TVBigRectToLocalRect: Add a GlobalToLocal-like function

jcs made amendment 59 about 1 year ago

TVGetOffset -> TVGetTextOffset

jcs made amendment 58 about 1 year ago

Amendments on December 13, 2024

*: Add support for right and center alignment

Also avoid some errant setting of grew which were causing more
EraseRect doings than necessary.
jcs made amendment 57 about 1 year ago

Amendments on November 21, 2024

TVClear: Reset next_slab pointers

jcs made amendment 56 over 2 years ago