AmendHub

jcs

/

textview

/

amendments

/

textview.c

Amendments on November 5, 2026

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

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

TVAppendLocked: Check for fromline first

jcs made amendment 85 23 days ago

Amendments on October 15, 2026

TVUpdateScrollbar+TVScroll: Cache TVScrollDivisor result

jcs made amendment 83 about 1 month ago

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

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

*: Add text selection helpers

jcs made amendment 67 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 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