mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
If there are any terminals with insert mode but not ich1, they can go
through the slow path. Tidies code slightly.
This commit is contained in:
7
tty.c
7
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user