diff options
author | 2016-04-29 15:00:48 +0000 | |
---|---|---|
committer | 2016-04-29 15:00:48 +0000 | |
commit | bc3b19faf8c0a279e283433e2ae90152b2351585 (patch) | |
tree | 88b8443f41dc6f048d9ccaa300152d7cbd9fc55b /usr.bin/tmux/cmd-set-option.c | |
parent | Fix some gibbering horrors due to uninitialized struct nameidata's (diff) | |
download | wireguard-openbsd-bc3b19faf8c0a279e283433e2ae90152b2351585.tar.xz wireguard-openbsd-bc3b19faf8c0a279e283433e2ae90152b2351585.zip |
Add option to include status text in the pane borders. If
pane-border-status is set to "top" or "bottom" (rather than "off"),
every pane has a permanent top or bottom border containing the text from
pane-border-format.
Based on a diff sent long ago by Jonathan Slenders, mostly rewritten and
simplified by me.
Diffstat (limited to 'usr.bin/tmux/cmd-set-option.c')
-rw-r--r-- | usr.bin/tmux/cmd-set-option.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c index e855f44cb9b..9a46343710d 100644 --- a/usr.bin/tmux/cmd-set-option.c +++ b/usr.bin/tmux/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-option.c,v 1.94 2016/03/03 14:15:22 nicm Exp $ */ +/* $OpenBSD: cmd-set-option.c,v 1.95 2016/04/29 15:00:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -201,6 +201,12 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) if (strcmp(oe->name, "monitor-silence") == 0) alerts_reset_all(); + /* When the pane-border-status option has been changed, resize panes. */ + if (strcmp(oe->name, "pane-border-status") == 0) { + RB_FOREACH(w, windows, &windows) + layout_fix_panes(w, w->sx, w->sy); + } + /* Update sizes and redraw. May not need it but meh. */ recalculate_sizes(); TAILQ_FOREACH(c, &clients, entry) { |