aboutsummaryrefslogtreecommitdiffstats
path: root/src/expr.c
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-15 13:30:14 +0200
committeruser <user@clank>2026-08-15 13:30:14 +0200
commitd8e3c956ed7bf257949e603bdc21635c23b9dbe2 (patch)
treef7d7e608c9605cb662c7f36d104184e7123ac838 /src/expr.c
parentsl0ppty: say which build you are talking to (diff)
downloadslosh-d8e3c956ed7bf257949e603bdc21635c23b9dbe2.tar.gz
slosh-d8e3c956ed7bf257949e603bdc21635c23b9dbe2.tar.xz
slosh-d8e3c956ed7bf257949e603bdc21635c23b9dbe2.zip
sl0ppty: centre the middle of the status line on the row
It was centred in whatever space the two ends had left over, which meant it moved whenever a pane title, a session name or a state indicator changed length. The one thing on that line you might want to glance at was never twice in the same place -- which is most of the value of having a fixed place to put it. It is centred on the row now. And when the row is too full for it *there*, it is not drawn: not squeezed, not slid along, and not written over the ends. The first attempt at this did overwrite them, which read fine on a wide terminal and, on a narrow one, ate the words "exited: status 3" -- caught by a test for the dead-pane indicator rather than by anything looking at the status line, which is the good kind of accident. The rule that came out of it is the honest one: the ends say which session and pane you are in and are not written anywhere else on screen, while the middle is a hint you can get back by hovering or a version you can read a moment later. So the middle is the part that disappears. It keeps a blank column on each side while it is there, because touching reads as overlapping.
Diffstat (limited to 'src/expr.c')
0 files changed, 0 insertions, 0 deletions