mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 21:54:23 +00:00
Scale pane on unhiding to window when necessary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,18 +59,18 @@ static void
|
||||
cmd_resize_pane_desktop(struct window *w)
|
||||
{
|
||||
struct window_pane *wp;
|
||||
int marked = 0;
|
||||
int shown = 0;
|
||||
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if (wp->flags & PANE_HIDDENALL)
|
||||
marked = 1;
|
||||
}
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if (marked) {
|
||||
if (wp->flags & PANE_HIDDENALL)
|
||||
window_show_pane(wp);
|
||||
if (~wp->flags & PANE_HIDDENALL)
|
||||
continue;
|
||||
}
|
||||
window_show_pane(wp);
|
||||
shown = 1;
|
||||
}
|
||||
if (shown)
|
||||
return;
|
||||
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if (wp == w->modal || (wp->flags & PANE_HIDDEN))
|
||||
continue;
|
||||
if (!window_pane_is_raised(wp))
|
||||
|
||||
Reference in New Issue
Block a user