summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-04-07 20:18:21 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-04-07 20:18:21 +0000
commitce138783e80cab520f32337af7c22c43540e8ff9 (patch)
tree110c0456bd9bac326638912c12b39bff647cad78 /usr.bin
parent28b2814d69289ee77e37970f128029ec21230291 (diff)
Current window style also needs to be tested for default.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/options-table.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c
index 46738c71144..52eba2bdaff 100644
--- a/usr.bin/tmux/options-table.c
+++ b/usr.bin/tmux/options-table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options-table.c,v 1.102 2019/04/02 18:41:24 nicm Exp $ */
+/* $OpenBSD: options-table.c,v 1.103 2019/04/07 20:18:20 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -97,7 +97,10 @@ static const char *options_table_window_size_list[] = {
"#{?window_end_flag,,#{window-status-separator}}" \
"," \
"#[range=window|#{window_index} list=focus " \
- "#{window-status-current-style}" \
+ "#{?#{!=:#{window-status-current-style},default}," \
+ "#{window-status-current-style}," \
+ "#{window-status-style}" \
+ "}" \
"#{?#{&&:#{window_last_flag}," \
"#{!=:#{window-status-last-style},default}}, " \
"#{window-status-last-style}," \