aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/libghostty-vt/src/simd/codepoint_width.cpp
diff options
context:
space:
mode:
authorPeter Geissler <peter@haxx.in>2026-09-20 19:55:03 +0200
committerPeter Geissler <peter@haxx.in>2026-09-20 19:55:03 +0200
commit65a694b194bd68f8c6ba4b961e2cc906b8738a6c (patch)
tree0c915581b19fd379b4da9e118814c022fefe4e1d /vendor/libghostty-vt/src/simd/codepoint_width.cpp
parentsidebar: a talkative pane can no longer cost you a tab (diff)
downloadslosh-65a694b194bd68f8c6ba4b961e2cc906b8738a6c.tar.gz
slosh-65a694b194bd68f8c6ba4b961e2cc906b8738a6c.tar.xz
slosh-65a694b194bd68f8c6ba4b961e2cc906b8738a6c.zip
sidebar: a status can have more than one row (tab_bar_status_lines)
Sixteen cells is not enough for a sentence, and a sentence is what a pane has to say: "add a summary…" is most of a status and none of its meaning. tab_bar_status_lines 3 word-wraps instead of cutting, and the same column carries forty-eight cells rather than sixteen. Wrapped, the rows under a tab stop being a list of panes and become a paragraph each, so the shape no longer says where one pane's status ends and the next begins -- both are italic text down one column. Alternate panes are drawn on alternate bands to say it instead: tab_status_stripe, derived from the theme like tab_status_fg, so a theme that has never heard of any of this still gets a band in its own family. Nothing is painted at one line, where there is no ambiguity to resolve and a band would take a translucent terminal's background away for nothing. 1 is the default and is the old behaviour exactly, down to cutting at the column rather than the last word before it: with no next row to move the word to, breaking early would spend cells on nothing. The reason to prefer a word boundary only exists once there is somewhere for the word to go. Rows count against tab_bar_status as before, so wrapping trades panes for words within the same allowance, and the allowance itself still gives way to the tabs. A status that will not fit whole is dropped whole and reported with the ellipsis, rather than shown as a fragment that reads like the whole thing. Every row of a status is the same `find:` door. tabstatus's buffer goes to 256 to match pane_status's own slot: at one line the drawing cut it anyway, but wrapped it is the whole string that has to survive the trip.
Diffstat (limited to 'vendor/libghostty-vt/src/simd/codepoint_width.cpp')
0 files changed, 0 insertions, 0 deletions