aboutsummaryrefslogtreecommitdiffstats
path: root/src/expr.c
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-18 15:49:59 +0200
committeruser <user@clank>2026-08-18 15:49:59 +0200
commit0e48544210c58e55ebc17d399b390c6c3bba9492 (patch)
treea82ecbadc6601099c92cd3a2fa9a7fd6e381c444 /src/expr.c
parentsl0ppty: the middle of a border is the button, not all of it (diff)
downloadslosh-0e48544210c58e55ebc17d399b390c6c3bba9492.tar.gz
slosh-0e48544210c58e55ebc17d399b390c6c3bba9492.tar.xz
slosh-0e48544210c58e55ebc17d399b390c6c3bba9492.zip
sl0ppty: a horizontal handle gets heavier, not taller
The armed handle grew by one cell into the pane on all four sides, which is one change on two axes and therefore two different results. A cell is about twice as tall as it is wide -- the fact `gap_aspect` exists for, and the one the split picker measures its longer side by -- so the extra column on a left or right edge read as a thicker line, and the extra row on a top or bottom edge read as a wall. It also spent a row of somebody's output to say something the glyph was already saying: `█` is the heaviest thing one cell can draw, and against `━` it needs no help. So only the upright sides widen now. A horizontal handle stays on its own row. That also removes its claim on a content cell, which is why the inner-strip hit is registered on those two sides only -- the paint and the hit still describe the same rect, which is the whole reason the guide registers what it thickens. Verified: `make retest`, 1807 checks, all green -- six new, pinning the asymmetry in both directions: the top and bottom handles occupy exactly the row their border is on, the left and right ones exactly two columns, and the inner column of each upright handle hit-tests as that border rather than as the pane. Measured on a live session rather than argued: hovering the bottom border of a 116x36 pane puts seven block cells on row 37 and no others, inside the `━` rule; hovering the left border puts them on rows 16-22 across columns 2 and 3.
Diffstat (limited to 'src/expr.c')
0 files changed, 0 insertions, 0 deletions