aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-02-08 16:01:17 +0000
committerThomas Adam <thomas@xteddy.org>2017-02-08 16:01:17 +0000
commite09625e38b361b8ce0b8fa88851f447144f1a718 (patch)
tree6a2e8c874da3aa06c38a929d47b734d33f968d42
parent9af5f3ff812044a157a120ba7e2c70283b3b36dd (diff)
parent96b66f8fc32867899653dd898f53285741ab8c83 (diff)
downloadrtmux-e09625e38b361b8ce0b8fa88851f447144f1a718.tar.gz
rtmux-e09625e38b361b8ce0b8fa88851f447144f1a718.tar.bz2
rtmux-e09625e38b361b8ce0b8fa88851f447144f1a718.zip
Merge branch 'obsd-master'
-rw-r--r--resize.c8
-rw-r--r--tty.c6
2 files changed, 6 insertions, 8 deletions
diff --git a/resize.c b/resize.c
index ba8078bc..ff1c9eec 100644
--- a/resize.c
+++ b/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;
diff --git a/tty.c b/tty.c
index b075647a..1b1ae480 100644
--- a/tty.c
+++ b/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;
}