Tk Source Code

Check-in [45ee0da4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Merge nab-integration: five fixes from the adversarial hardening campaign - numeric tabs with -wrap none, widget -locale relayout, [checksum -displaytext] eliding, load/ClearText tag rootPtr reset, and UpdateElideInfo branch reuse + protectionFlag clearing. With regression tests.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | revised_text | tip-466
Files: files | file ages | folders
SHA3-256: 45ee0da4df8ebd3694328000a7c3a545242eb34076aa37d87319c5f8f14e3dad
User & Date: nab 2026-07-15 10:02:44.718
Context
2026-07-15
10:19
Merge nab-deleterange-elide: make deletions and undo/redo across elided region boundaries reliable. DeleteRange handles all switch topologies of a deletion range (separate savedLinkPtr/savedBranchPtr, merge of regions becoming adjacent, canonicalization of regions adjacent to the range, counter transfer at line joins, byte-position anchor for the surrogate newline); UndoDeletePerform restores switches with correct sections, counters and mark ordering in multiline tokens, releases the token references (leak), and keeps dead switches out of foreign token chains; delete undo tokens holding switches are not joined anymore; 'edit reset' and ClearText dispose of the retained tag/mark undo tokens; a full undo stack evicts its oldest atom instead of retaining stale ones; TkRangeListDelete/Add/Contains repairs. With regression tests btree-14.12 - btree-14.39, text-27.32/33/35/36, textDisp-38.1 - 38.3. check-in: 182404a7 user: nab tags: revised_text, tip-466
10:16
Merge revised_text: trunk merges, nab-tabs-wrap-none, and the five adversarial hardening fixes (nab-integration). The regression tests btree-14.8 - btree-14.35 of this branch move to btree-14.12 - btree-14.39, the merged nab-integration tests own btree-14.8 - btree-14.11. closed check-in: d303deae user: nab tags: nab-deleterange-elide
10:02
Merge nab-integration: five fixes from the adversarial hardening campaign - numeric tabs with -wrap none, widget -locale relayout, [checksum -displaytext] eliding, load/ClearText tag rootPtr reset, and UpdateElideInfo branch reuse + protectionFlag clearing. With regression tests. check-in: 45ee0da4 user: nab tags: revised_text, tip-466
10:01
Integrate nab-elide-updateinfo closed check-in: bcf3aadd user: nab tags: nab-integration
2026-07-14
15:18
Fix EXEC flag check-in: a9e781cf user: jan.nijtmans tags: revised_text, tip-466
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkText.c.
Changes to generic/tkTextBTree.c.
Changes to generic/tkTextDisp.c.
Changes to tests/text.test.
Changes to tests/textBTree.test.
Changes to tests/textDisp.test.
Changes to tests/textTag.test.