summaryrefslogtreecommitdiffstats
path: root/options-table.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2018-09-26 18:41:18 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2018-09-26 18:41:18 +0100
commitebaf54251a6e3a1b366531155ab59dbd286a4a3a (patch)
tree596067245f03b7a10bf4500cc10adc7863f46894 /options-table.c
parentb74b047730226a64a64b1e1dd1cc1d7f3305ea53 (diff)
Add formats for when window is larger than client, and show offset in
status-right by default when larger.
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c
index 0776f0b7..4bc7982f 100644
--- a/options-table.c
+++ b/options-table.c
@@ -476,7 +476,9 @@ const struct options_table_entry options_table[] = {
{ .name = "status-right",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_SESSION,
- .default_str = " \"#{=21:pane_title}\" %H:%M %d-%b-%y"
+ .default_str = "#{?window_bigger,"
+ "[#{window_offset_x}#,#{window_offset_y}] ,}"
+ "\"#{=21:pane_title}\" %H:%M %d-%b-%y"
},
{ .name = "status-right-attr",