mirror of
https://github.com/tmux/tmux.git
synced 2024-11-05 18:38:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
e09625e38b
8
resize.c
8
resize.c
@ -84,8 +84,8 @@ recalculate_sizes(void)
|
||||
if (s->sx == ssx && s->sy == ssy)
|
||||
continue;
|
||||
|
||||
log_debug("session size %u,%u (was %u,%u)", ssx, ssy, s->sx,
|
||||
s->sy);
|
||||
log_debug("session $%u size %u,%u (was %u,%u)", s->id, ssx, ssy,
|
||||
s->sx, s->sy);
|
||||
|
||||
s->sx = ssx;
|
||||
s->sy = ssy;
|
||||
@ -130,8 +130,8 @@ recalculate_sizes(void)
|
||||
|
||||
if (w->sx == ssx && w->sy == ssy)
|
||||
continue;
|
||||
log_debug("window size %u,%u (was %u,%u)", ssx, ssy, w->sx,
|
||||
w->sy);
|
||||
log_debug("window @%u size %u,%u (was %u,%u)", w->id, ssx, ssy,
|
||||
w->sx, w->sy);
|
||||
|
||||
w->flags &= ~(WINDOW_FORCEWIDTH|WINDOW_FORCEHEIGHT);
|
||||
w->flags |= forced;
|
||||
|
6
tty.c
6
tty.c
@ -142,6 +142,7 @@ tty_resize(struct tty *tty)
|
||||
sx = 80;
|
||||
sy = 24;
|
||||
}
|
||||
log_debug("%s: %s now %ux%u", __func__, tty->path, sx, sy);
|
||||
if (!tty_set_size(tty, sx, sy))
|
||||
return (0);
|
||||
|
||||
@ -997,10 +998,7 @@ tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx)
|
||||
if ((!tty_pane_full_width(tty, ctx) && !tty_use_margin(tty)) ||
|
||||
tty_fake_bce(tty, wp, ctx->bg) ||
|
||||
!tty_term_has(tty->term, TTYC_CSR)) {
|
||||
if (tty_large_region(tty, ctx))
|
||||
wp->flags |= PANE_REDRAW;
|
||||
else
|
||||
tty_redraw_region(tty, ctx);
|
||||
tty_redraw_region(tty, ctx);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user