summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-09-11 15:43:12 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-09-11 15:43:12 +0000
commit10b6b55a0bfc1b7b776b537288cf3d86f8f2e032 (patch)
tree87f7d785f3138c1e8e2635ee45e8087efede77e4 /usr.bin/tmux
parentd7738f748e236ab1d2d691e91c76276c12f00461 (diff)
Ignore terminal overrides settings without a value.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tty-term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty-term.c b/usr.bin/tmux/tty-term.c
index 6c42dbbcfe2..c3198d9c896 100644
--- a/usr.bin/tmux/tty-term.c
+++ b/usr.bin/tmux/tty-term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty-term.c,v 1.16 2009/12/03 22:50:10 nicm Exp $ */
+/* $OpenBSD: tty-term.c,v 1.17 2010/09/11 15:43:11 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -249,7 +249,8 @@ tty_term_override(struct tty_term *term, const char *overrides)
} else if (entstr[strlen(entstr) - 1] == '@') {
entstr[strlen(entstr) - 1] = '\0';
removeflag = 1;
- }
+ } else
+ continue;
for (i = 0; i < NTTYCODE; i++) {
ent = &tty_term_codes[i];