diff options
author | nicm <nicm> | 2017-05-12 14:13:54 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-05-12 14:13:54 +0000 |
commit | da724fe1c0b71f7aca22632343c94da28f901637 (patch) | |
tree | 183a64ed160f43ce6893d8aff91700b92b284610 /tty.c | |
parent | ffd8beb6f6bbac1b06948e6ce8d0ff116a7fd021 (diff) | |
download | rtmux-da724fe1c0b71f7aca22632343c94da28f901637.tar.gz rtmux-da724fe1c0b71f7aca22632343c94da28f901637.tar.bz2 rtmux-da724fe1c0b71f7aca22632343c94da28f901637.zip |
Cannot rely on cursor position after DL and IL (some terminals move to
column 0, some do not).
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1080,6 +1080,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 @@ -1100,6 +1101,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 |