From 713f3b05f3f0579c4ccbba2d93affaf672a3a473 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 8 Feb 2017 13:53:32 +0000 Subject: Improve some of the logging on resize. --- tty.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tty.c') diff --git a/tty.c b/tty.c index b075647a..f712b17a 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); -- cgit From 96b66f8fc32867899653dd898f53285741ab8c83 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 8 Feb 2017 15:24:48 +0000 Subject: Remove unnecessary duplicate check. --- tty.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index f712b17a..1b1ae480 100644 --- a/tty.c +++ b/tty.c @@ -998,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; } -- cgit