Tk Library Source Code

Timeline
Login

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

2 check-ins related to "history-navigation-off-by-one"

2026-11-22
16:39
Fix history navigation (part of [05344d311a]): since version 0.2 ([5e324065bf]) the current position started at 0, the index of the newest entry, so Up skipped the newest entry, a single entry could never be recalled and Down never restored the text being typed. The position starts at -1 again as in 0.1. To keep the intent of [5e324065bf], Up and Down skip the newest entry when the entry already shows it (it was not cleared after ::history::add). ::history::add now finds duplicates with exact matching instead of glob matching, and keeps at most length entries instead of length+1. leaf check-in: 60a888e316 user: serhiy.storchaka tags: history-navigation-off-by-one
2026-11-21
12:29
history tests: map the main window, the test harness withdraws it leaf check-in: 67dde4ce31 user: serhiy.storchaka tags: tests-history