Remove unnecessary duplicate check.

pull/777/head
nicm 2017-02-08 15:24:48 +00:00
parent 713f3b05f3
commit 96b66f8fc3
1 changed files with 1 additions and 4 deletions

5
tty.c
View File

@ -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;
}