fix: rebuild the timestamp column on reload instead of leaving it stale #25
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/timestamps-survive-reload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checklist
Problem
buf.loadclears the ANSI namespace but not the one the timestamps live in, sotheir marks outlived the text they described:
Refreshing the same job hides it, because identical stamps land on identical
lines. But the reason to press
Ron a job is that its log has grown, and thenevery stamp sits against the wrong line.
The flag persisted too, so the next
gSturned the column off at a pointwhere it looked like it was already off.
Solution
Rendering clears the column before painting and restores it afterwards if it
was showing, so the marks always describe the text beneath them:
Showing and hiding were two spellings of the same operation, so they collapse
into one
times(buf, on)that clears unconditionally and repopulates whenasked.
M.timestampsis now just the toggle.