Skip to content

Remove padding from borderless menus - #5447

Open
Mr-Neutr0n wants to merge 2 commits into
tmux:masterfrom
Mr-Neutr0n:fix/menu-border-lines-none
Open

Remove padding from borderless menus#5447
Mr-Neutr0n wants to merge 2 commits into
tmux:masterfrom
Mr-Neutr0n:fix/menu-border-lines-none

Conversation

@Mr-Neutr0n

Copy link
Copy Markdown

Summary

  • size and position menus without frame rows or columns when menu-border-lines is none
  • keep hidden titles from reserving width in borderless menus
  • use the same geometry for rendering, cursor placement, resize, and mouse hit testing

Addresses #4897.

Testing

  • make -j4
  • focused screen-redraw-menus.sh no-border regression
  • regress/menu-mouse.sh
  • full regression run: related tests pass; three unrelated existing macOS/timing failures remain in copy-mode-selection-scroll.sh, format-mouse.sh, and the menu-over-split golden

Prepared with OpenAI Codex assistance; I reviewed and tested the changes.

@nicm

nicm commented Aug 6, 2026

Copy link
Copy Markdown
Member

Looks good but try this:

tmux new
tmux set menu-border-lines none
tmux neww
tmux display-menu -t%0 a b c
tmux selectw -t%0

The menu has lines even though that window is configured with none.

@nicm nicm moved this from Not Started to Waiting in Open Issues & PRs Aug 6, 2026
Signed-off-by: Mr-Neutr0n <harikp2002@gmail.com>
@Mr-Neutr0n

Copy link
Copy Markdown
Author

Thanks, I reproduced the exact sequence. The issue was that display-menu read menu-border-lines from the current window after neww instead of the explicitly targeted window (%0), so it saw the default border setting. I updated it to use the target window options, added a regression case for this sequence, and verified the rebuilt binary renders the borderless menu. Commit 2776e2e is pushed for recheck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Waiting

Development

Successfully merging this pull request may close these issues.

2 participants