diff options
author | 2020-05-16 14:42:06 +0000 | |
---|---|---|
committer | 2020-05-16 14:42:06 +0000 | |
commit | 62b632c9b2955385990ce839e66b1347719c40bb (patch) | |
tree | b9fcf2782d695bc249589cd5511ccf0462ca27e8 /usr.bin/tmux/tty.c | |
parent | Avoid sending an empty certificate list from the TLSv1.3 server. (diff) | |
download | wireguard-openbsd-62b632c9b2955385990ce839e66b1347719c40bb.tar.xz wireguard-openbsd-62b632c9b2955385990ce839e66b1347719c40bb.zip |
Do not redraw or update mode if nothing has changed.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index b755f2d9b4a..f565c700f1e 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.367 2020/05/16 14:39:40 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.368 2020/05/16 14:42:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -674,7 +674,8 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s) mode &= ~MODE_CURSOR; changed = mode ^ tty->mode; - log_debug("%s: update mode %x to %x", c->name, tty->mode, mode); + if (changed != 0) + log_debug("%s: update mode %x to %x", c->name, tty->mode, mode); if (changed & MODE_BLINKING) { if (tty_term_has(tty->term, TTYC_CVVIS)) |