Repository navigation
Conversation
A Text with width Math.min(implicitWidth, parent.width) plus elide paints its full text when the clamp lands on exactly 0. A match late in a long name zeroes the run/tail box (the head fills the slot), so the run and tail paint full-width over the location/size text until any relayout. Guard all three runs with visible: width > 0, mirroring the wash's own visible: runText.width > 0 gate.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Nice one, will fix! |
|
A late name match could paint over the next column. A match late in a long name no longer paints over the next column (ab9e18ba1c, v0.4.0). Thanks @joebaus! Release. |
Joe Baus's fix: a match late in a long name clamped its run and tail to width 0, and an elided Text at width 0 painted its whole text over the next cell. Co-authored-by: joebaus <[email protected]>
Search and the filter match names that carry zero-width marks, the way the text reads on screen (thisisgm#326).
Fixes a transient Columns-view bug where a long search/filter-result filename overpaints the location/size text on first render, then heals after any window adjustment.
Root cause.
ui/MatchText.qmlrenders a marked name as three runs (before/run/after), each width-clamped withMath.min(implicitWidth, …). Isolated windowed probes proved the clamp has a singular hole: clamping to 300/100/30 px elides correctly, but clamping to exactly 0 paints the full text (truncated=false— e.g. 525 px of tail from a width-0 box). Width 0 happens exactly when the match sits so late in a long name that the head fills the whole slot: the run/tail box goes tomax(0, slot − slot) = 0and both paint full-width over whatever follows. An early match never zeroes the box, so only late-match names trigger it. Any relayout recomputes the widths and the elision applies, hence the heal on resize. Single painter, no pooling involved — pooled delegates were ruled out by screenshot (Qt detaches them from rendering).Fix.
visible: width > 0onbeforeText,runText,afterText— mirroring the wash rectangle's existingvisible: runText.width > 0guard, which already accepted that a run with no room draws nothing. Normal rendering is untouched (probe fresh-load control is pixel-identical).Verification.
ColumnPane+StableModel+ realFilterkeystrokes, per-frame geometry + screenshots across filter, zero-pass landing, fresh-load control, and search-locating legs):COLPROBE PASSwith the fix; the same probe fails without it (zero-width run visible + text-overflows-box on the late-match row), so the gate is sensitive to this exact defect.staticgates.sh14/14 (baseline remapped +6 lines for the added guards),flea-file-budget,qmllint(output identical to base),poolpark.sh,columnscost.sh,js.sh— green; release builds clean.Repro (general). In Columns view, any filter (
/) or search query whose match sits late enough in a long filename that the pre-match head fills the whole name slot. The run/tail box then clamps to width 0 and paints full-width over the location/size text until any relayout. Concrete instance:/then:in~/TestonThis is a visual test for where the : symbol is searched.md— the:sits deep enough in the name that the tail overpaints the size cell on first render. Rule of thumb: if the highlighted match would sit past the visible head of an overlong name, that row exercises the bug on the unfixed tree.screenrecording-2026-10-17_23-23-00.mp4
Files:
ui/MatchText.qml(+7),tests/staticgates-unqualified.tsv(20 baseline rows shifted).Summary by CodeRabbit