From 7c07f5f6405c2c38a374ecb41d1ab9615223f6ac Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 12 May 2017 14:13:54 +0000 Subject: Cannot rely on cursor position after DL and IL (some terminals move to column 0, some do not). --- tty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tty.c b/tty.c index 6dd6b490..7998e26e 100644 --- a/tty.c +++ b/tty.c @@ -990,6 +990,7 @@ tty_cmd_insertline(struct tty *tty, const struct tty_ctx *ctx) tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); tty_emulate_repeat(tty, TTYC_IL, TTYC_IL1, ctx->num); + tty->cx = tty->cy = UINT_MAX; } void @@ -1010,6 +1011,7 @@ tty_cmd_deleteline(struct tty *tty, const struct tty_ctx *ctx) tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); tty_emulate_repeat(tty, TTYC_DL, TTYC_DL1, ctx->num); + tty->cx = tty->cy = UINT_MAX; } void -- cgit