mirror of
https://github.com/tmux/tmux.git
synced 2026-10-09 11:44:23 +00:00
Zoomed panes are now like full screen floating panes.
This commit is contained in:
@@ -470,12 +470,9 @@ cmd_display_popup_exec(struct cmd *self, struct cmdq_item *item)
|
||||
lg.yoff++;
|
||||
}
|
||||
|
||||
window_push_zoom(w, 0, 1);
|
||||
lc = layout_floating_pane(w, wp, &lg);
|
||||
if (lc == NULL) {
|
||||
window_pop_zoom(w);
|
||||
if (lc == NULL)
|
||||
goto out;
|
||||
}
|
||||
|
||||
sc.item = item;
|
||||
sc.s = s;
|
||||
@@ -501,10 +498,8 @@ cmd_display_popup_exec(struct cmd *self, struct cmdq_item *item)
|
||||
cmdq_error(item, "create pane failed: %s", cause);
|
||||
free(cause);
|
||||
cause = NULL;
|
||||
window_pop_zoom(w);
|
||||
goto fail;
|
||||
}
|
||||
window_pop_zoom(w);
|
||||
new_wp->flags |= PANE_CAPTUREALLKEYS;
|
||||
if (!args_has(args, 'E'))
|
||||
new_wp->flags |= PANE_CLOSEONCANCEL;
|
||||
|
||||
Reference in New Issue
Block a user