summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/options-table.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-11-28 08:38:05 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-11-28 08:38:05 +0000
commitce3b476e5570567573ce3ac4a03c418c1105021a (patch)
tree4b31953a04be89e0948c26f35ce27607c7e139d0 /usr.bin/tmux/options-table.c
parentcdb9452c3ed24188dd25c3de21fc3e5e5392ebca (diff)
status-left and status-right need push-default also, reported by Eric
Pruitt in GitHub issue 1989.
Diffstat (limited to 'usr.bin/tmux/options-table.c')
-rw-r--r--usr.bin/tmux/options-table.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c
index 333d78c8bb8..77903228e25 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.113 2019/11/14 16:23:23 nicm Exp $ */
+/* $OpenBSD: options-table.c,v 1.114 2019/11/28 08:38:04 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -70,7 +70,10 @@ static const char *options_table_window_size_list[] = {
/* Status line format. */
#define OPTIONS_TABLE_STATUS_FORMAT1 \
"#[align=left range=left #{status-left-style}]" \
- "#{T;=/#{status-left-length}:status-left}#[norange default]" \
+ "#[push-default]" \
+ "#{T;=/#{status-left-length}:status-left}" \
+ "#[pop-default]" \
+ "#[norange default]" \
"#[list=on align=#{status-justify}]" \
"#[list=left-marker]<#[list=right-marker]>#[list=on]" \
"#{W:" \
@@ -126,7 +129,10 @@ static const char *options_table_window_size_list[] = {
"#{?window_end_flag,,#{window-status-separator}}" \
"}" \
"#[nolist align=right range=right #{status-right-style}]" \
- "#{T;=/#{status-right-length}:status-right}#[norange default]"
+ "#[push-default]" \
+ "#{T;=/#{status-right-length}:status-right}" \
+ "#[pop-default]" \
+ "#[norange default]"
#define OPTIONS_TABLE_STATUS_FORMAT2 \
"#[align=centre]#{P:#{?pane_active,#[reverse],}" \
"#{pane_index}[#{pane_width}x#{pane_height}]#[default] }"