diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-05-11 09:02:29 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-05-11 09:02:29 +0100 |
commit | 50d1d04913773762459ba02ef473261459c8e8a9 (patch) | |
tree | 0804fa237cb02cc06743b2bcc1edfba4fbb2acb3 | |
parent | 67e2f5869af633631ef089d82682a3805dbba94f (diff) | |
parent | 198b0a23a21ac1cd30b1e9c23fcc38087c22bd7e (diff) | |
download | rtmux-50d1d04913773762459ba02ef473261459c8e8a9.tar.gz rtmux-50d1d04913773762459ba02ef473261459c8e8a9.tar.bz2 rtmux-50d1d04913773762459ba02ef473261459c8e8a9.zip |
Merge branch 'obsd-master'
-rw-r--r-- | resize.c | 5 | ||||
-rw-r--r-- | status.c | 4 | ||||
-rw-r--r-- | tmux.1 | 6 |
3 files changed, 8 insertions, 7 deletions
@@ -174,11 +174,12 @@ recalculate_sizes(void) TAILQ_FOREACH(c, &clients, entry) { if (ignore_client_size(c)) continue; - if (c->tty.sy <= status_line_size(c)) + s = c->session; + if (c->tty.sy <= s->statuslines || (c->flags & CLIENT_CONTROL)) c->flags |= CLIENT_STATUSOFF; else c->flags &= ~CLIENT_STATUSOFF; - c->session->attached++; + s->attached++; } /* Walk each window and adjust the size. */ @@ -203,7 +203,7 @@ status_at_line(struct client *c) { struct session *s = c->session; - if (c->flags & CLIENT_STATUSOFF) + if (c->flags & (CLIENT_STATUSOFF|CLIENT_CONTROL)) return (-1); if (s->statusat != 1) return (s->statusat); @@ -216,7 +216,7 @@ status_line_size(struct client *c) { struct session *s = c->session; - if (c->flags & CLIENT_STATUSOFF) + if (c->flags & (CLIENT_STATUSOFF|CLIENT_CONTROL)) return (0); return (s->statuslines); } @@ -4468,17 +4468,17 @@ as a list of menu items separated by .Ql | . Each menu item consists of three comma-separated parts: .Bl -enum -width Ds -.It name +.It The menu item name. This is a format and may include embedded styles, see the .Sx FORMATS and .Sx STYLES sections. -.It key +.It The menu item shortcut key. If this is empty the menu item has no key shortcut. -.It command +.It The command run when the menu item is chosen. .El .Pp |