diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-02-08 16:01:17 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-02-08 16:01:17 +0000 |
commit | e09625e38b361b8ce0b8fa88851f447144f1a718 (patch) | |
tree | 6a2e8c874da3aa06c38a929d47b734d33f968d42 | |
parent | 9af5f3ff812044a157a120ba7e2c70283b3b36dd (diff) | |
parent | 96b66f8fc32867899653dd898f53285741ab8c83 (diff) | |
download | rtmux-e09625e38b361b8ce0b8fa88851f447144f1a718.tar.gz rtmux-e09625e38b361b8ce0b8fa88851f447144f1a718.tar.bz2 rtmux-e09625e38b361b8ce0b8fa88851f447144f1a718.zip |
Merge branch 'obsd-master'
-rw-r--r-- | resize.c | 8 | ||||
-rw-r--r-- | tty.c | 6 |
2 files changed, 6 insertions, 8 deletions
@@ -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; @@ -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; } |