From d4b006b9faf001de41560db2e8fb890c654598e2 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 8 Feb 2017 16:18:20 +0000 Subject: [PATCH] Fix clear start of line. --- tty.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tty.c b/tty.c index 02143f97..1b7fb55f 100644 --- a/tty.c +++ b/tty.c @@ -954,14 +954,15 @@ tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx) tty_default_attributes(tty, wp, ctx->bg); - tty_cursor_pane(tty, ctx, 0, ctx->ocy); - if (ctx->xoff == 0 && tty_term_has(tty->term, TTYC_EL1) && - !tty_fake_bce(tty, ctx->wp, ctx->bg)) + !tty_fake_bce(tty, ctx->wp, ctx->bg)) { + tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); tty_putcode(tty, TTYC_EL1); - else + } else { + tty_cursor_pane(tty, ctx, 0, ctx->ocy); tty_repeat_space(tty, ctx->ocx + 1); + } } void