From ad27b7decd61d353031aeac5de01d44bcb374f26 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 11 May 2019 06:34:56 +0000 Subject: Do not reduce window height by status line height for control mode clients, from George Nachman. --- resize.c | 5 +++-- status.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resize.c b/resize.c index caac74ba..0e0b070d 100644 --- a/resize.c +++ b/resize.c @@ -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. */ diff --git a/status.c b/status.c index 332f8fd6..ef8cf14d 100644 --- a/status.c +++ b/status.c @@ -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); } -- cgit From 198b0a23a21ac1cd30b1e9c23fcc38087c22bd7e Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 11 May 2019 06:40:01 +0000 Subject: Don't use arguments with It and -enum, pointed out by jmc. --- tmux.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmux.1 b/tmux.1 index f2c529d7..f0af27cb 100644 --- a/tmux.1 +++ b/tmux.1 @@ -4461,17 +4461,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 -- cgit