diff options
author | nicm <nicm> | 2017-02-08 16:18:20 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-02-08 16:18:20 +0000 |
commit | d4b006b9faf001de41560db2e8fb890c654598e2 (patch) | |
tree | f5b2d8587fc9c337ce6dc79aecb17526395af265 /tty.c | |
parent | 7475165cd87d443da34da11298e638d3d17f43e9 (diff) | |
download | rtmux-d4b006b9faf001de41560db2e8fb890c654598e2.tar.gz rtmux-d4b006b9faf001de41560db2e8fb890c654598e2.tar.bz2 rtmux-d4b006b9faf001de41560db2e8fb890c654598e2.zip |
Fix clear start of line.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |