mirror of
https://github.com/tmux/tmux.git
synced 2026-01-12 01:00:22 +00:00
1. Rework floating panes to have a stub layout_cell, 2. Add new <..> format to list-windows & select-layout for floating anes, 3. Fix zooming to work with floating panes, 4. Fix several display issues.
This commit is contained in:
4
tty.c
4
tty.c
@@ -1382,7 +1382,7 @@ tty_draw_pane(struct tty *tty, const struct tty_ctx *ctx, u_int py)
|
||||
|
||||
if (!ctx->bigger) {
|
||||
if (wp) {
|
||||
vr = screen_redraw_get_visible_ranges(wp, 0, py, nx);
|
||||
vr = screen_redraw_get_visible_ranges(wp, 0, ctx->yoff + py, nx);
|
||||
for (r=0; r < vr->used; r++) {
|
||||
if (vr->nx[r] == 0)
|
||||
continue;
|
||||
@@ -2048,7 +2048,7 @@ tty_is_obscured(const struct tty_ctx *ctx)
|
||||
found_self = 1;
|
||||
continue;
|
||||
}
|
||||
if (found_self && wp->layout_cell == NULL &&
|
||||
if (found_self && wp->flags & PANE_FLOATING &&
|
||||
! (wp->flags & PANE_MINIMISED) &&
|
||||
((wp->yoff >= base_wp->yoff &&
|
||||
wp->yoff <= base_wp->yoff + (int)base_wp->sy) ||
|
||||
|
||||
Reference in New Issue
Block a user