aboutsummaryrefslogtreecommitdiffstats
path: root/docs/scripting.md
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-14 19:02:36 +0200
committeruser <user@clank>2026-08-14 19:02:36 +0200
commit8c8940a07c7883b34eccd55bdd7c7e947fcf9c06 (patch)
tree5eafc864b7a190dc750d9c0eca74de8e09f3df63 /docs/scripting.md
parentsl0ppty: a pane has to clear the floor in both directions (diff)
downloadslosh-8c8940a07c7883b34eccd55bdd7c7e947fcf9c06.tar.gz
slosh-8c8940a07c7883b34eccd55bdd7c7e947fcf9c06.tar.xz
slosh-8c8940a07c7883b34eccd55bdd7c7e947fcf9c06.zip
sl0ppty: give the scroll arrow room to breathe
"▲12" ran the arrow into the first digit. U+25B2 is drawn wide enough in plenty of fonts to touch whatever follows it, and the pair then reads as one smudged token instead of an arrow and a number. Both places that draw it — the pane frame and the status line — now put a space between. Both were also measuring the indicator in bytes. The arrow is three bytes and one column, so strlen reserved two columns that were never drawn, holding the whole thing further from the edge than it needed to be. The frame now counts cells arithmetically and hit-tests the width screen_text actually drew; the status line counts codepoints, which is exact for a string whose only non-ASCII is that arrow. Fixing the measurement immediately made the bottom line worse, which is a pleasing kind of bug: the two-column overcount had been supplying the gap between "scrolled" and "pane 1/1" by accident, and correcting it left them adjacent and reading as one phrase. The separation between right-hand clusters is now deliberate and two columns wide, rather than however much the arithmetic happened to be wrong by.
Diffstat (limited to 'docs/scripting.md')
0 files changed, 0 insertions, 0 deletions