summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-05-26 07:08:48 +0000
committernicm <nicm@openbsd.org>2011-05-26 07:08:48 +0000
commit78371c99d7f5ff8bff7e48a3b23752858d08054d (patch)
treeca155f82623741f5c842aed0b0fd436c5cc6c67b /usr.bin/tmux/tty.c
parentNo need to call _dl_newsymsearch() twice; ok drahn@ (diff)
downloadwireguard-openbsd-78371c99d7f5ff8bff7e48a3b23752858d08054d.tar.xz
wireguard-openbsd-78371c99d7f5ff8bff7e48a3b23752858d08054d.zip
Trim another useless if statement, from Ailin Nemui.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 73bf5b5035f..17b0ba6dddb 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.108 2011/05/20 19:17:39 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.109 2011/05/26 07:08:48 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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));