diff options
author | nicm <nicm> | 2017-05-12 14:13:54 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-05-12 16:03:49 +0100 |
commit | 7c07f5f6405c2c38a374ecb41d1ab9615223f6ac (patch) | |
tree | 24dc1e932a97cb834a5595ba542446a7d3168533 | |
parent | 69df38f8d8dee6363a173c0afd9dd5013c2a5ab9 (diff) | |
download | rtmux-7c07f5f6405c2c38a374ecb41d1ab9615223f6ac.tar.gz rtmux-7c07f5f6405c2c38a374ecb41d1ab9615223f6ac.tar.bz2 rtmux-7c07f5f6405c2c38a374ecb41d1ab9615223f6ac.zip |
Cannot rely on cursor position after DL and IL (some terminals move to
column 0, some do not).
-rw-r--r-- | tty.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |