aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-05-22 20:58:33 +0000
committerTiago Cunha <tcunha@gmx.com>2012-05-22 20:58:33 +0000
commitd9cb07df3b6dd1ddf299b2d4bc1438990e0eb54c (patch)
tree7adf0c9342c8079861779613a01df626163127a7 /tty.c
parenta97f22ff2beaa1f00f2c306045e75637bb7c4bd4 (diff)
downloadrtmux-d9cb07df3b6dd1ddf299b2d4bc1438990e0eb54c.tar.gz
rtmux-d9cb07df3b6dd1ddf299b2d4bc1438990e0eb54c.tar.bz2
rtmux-d9cb07df3b6dd1ddf299b2d4bc1438990e0eb54c.zip
Sync OpenBSD patchset 1116:
If there are any terminals with insert mode but not ich1, they can go through the slow path. Tidies code slightly.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tty.c b/tty.c
index eecb308a..ffa23097 100644
--- a/tty.c
+++ b/tty.c
@@ -754,12 +754,7 @@ tty_cmd_insertcharacter(struct tty *tty, const struct tty_ctx *ctx)
if (tty_term_has(tty->term, TTYC_ICH) ||
tty_term_has(tty->term, TTYC_ICH1))
tty_emulate_repeat(tty, TTYC_ICH, TTYC_ICH1, ctx->num);
- else if (tty_term_has(tty->term, TTYC_SMIR) &&
- tty_term_has(tty->term, TTYC_RMIR)) {
- tty_putcode(tty, TTYC_SMIR);
- tty_repeat_space(tty, ctx->num);
- tty_putcode(tty, TTYC_RMIR);
- } else
+ else
tty_draw_line(tty, wp->screen, ctx->ocy, ctx->xoff, ctx->yoff);
}