From 2f93affb988ecdae1cfd3fb73801ce5b943a6525 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 22 May 2012 09:36:12 +0000 Subject: If there are any terminals with insert mode but not ich1, they can go through the slow path. Tidies code slightly. --- tty.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 63a54f0a..91ef75bd 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); } -- cgit