summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-05-26 07:08:48 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-05-26 07:08:48 +0000
commit34e5ec18074b05f8ffc95bdefe7f7037ff046ecf (patch)
tree67d231643564fad0ada1f221e735ee75b118e041 /tty.c
parent480e48aa66b094c68e9f058073b7c10319ac98d5 (diff)
Trim another useless if statement, from Ailin Nemui.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 4fcf6f55..efd779a6 100644
--- a/tty.c
+++ b/tty.c
@@ -248,7 +248,7 @@ tty_stop_tty(struct tty *tty)
if (tty_term_has(tty->term, TTYC_CS1) && tty->cstyle != 0) {
if (tty_term_has(tty->term, TTYC_CSR1))
tty_raw(tty, tty_term_string(tty->term, TTYC_CSR1));
- else if (tty_term_has(tty->term, TTYC_CS1))
+ else
tty_raw(tty, tty_term_string1(tty->term, TTYC_CS1, 0));
}
tty_raw(tty, tty_term_string(tty->term, TTYC_CR));