diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-05-22 09:36:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-05-22 09:36:12 +0000 |
commit | 2f93affb988ecdae1cfd3fb73801ce5b943a6525 (patch) | |
tree | d45b360d1dc7e8d8a995073b0c1187f219e8d85a /tty.c | |
parent | 243d12752c4ccb4f2cfabeff8c8cb843550078ae (diff) |
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.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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); } |