From 9913cce3ba0f6c35970990ac2cbe9a83e3dc729d Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 7 Jul 2017 14:39:45 +0000 Subject: [PATCH 1/2] Add a pane_pipe format to show if pipe-pane is active, GitHub issue 990. --- format.c | 1 + tmux.1 | 1 + 2 files changed, 2 insertions(+) diff --git a/format.c b/format.c index 60067e4c..115eba94 100644 --- a/format.c +++ b/format.c @@ -1393,6 +1393,7 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp) format_add(ft, "pane_id", "%%%u", wp->id); format_add(ft, "pane_active", "%d", wp == wp->window->active); format_add(ft, "pane_input_off", "%d", !!(wp->flags & PANE_INPUTOFF)); + format_add(ft, "pane_pipe", "%d", wp->pipe_fd != -1); status = wp->status; if (wp->fd == -1 && WIFEXITED(status)) diff --git a/tmux.1 b/tmux.1 index 494f231b..4f9e3e5d 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3596,6 +3596,7 @@ The following variables are available, where appropriate: .It Li "pane_left" Ta "" Ta "Left of pane" .It Li "pane_mode" Ta "" Ta "Name of pane mode, if any." .It Li "pane_pid" Ta "" Ta "PID of first process in pane" +.It Li "pane_pipe" Ta "" Ta "1 if pane is being piped" .It Li "pane_right" Ta "" Ta "Right of pane" .It Li "pane_search_string" Ta "" Ta "Last search string in copy mode" .It Li "pane_start_command" Ta "" Ta "Command pane started with" From bfaa885f10ec9da42cd3aeb7a3efa999073657fa Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 7 Jul 2017 16:27:26 +0000 Subject: [PATCH 2/2] Fix size of rightmost preview section. --- window-tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window-tree.c b/window-tree.c index decba1ef..272e4d0a 100644 --- a/window-tree.c +++ b/window-tree.c @@ -512,7 +512,7 @@ window_tree_draw_session(struct window_tree_modedata *data, struct session *s, else offset = (i * each); if (loop == end - 1) - width = each - 1 + remaining; + width = each + remaining; else width = each - 1; @@ -638,7 +638,7 @@ window_tree_draw_window(struct window_tree_modedata *data, struct session *s, else offset = (i * each); if (loop == end - 1) - width = each - 1 + remaining; + width = each + remaining; else width = each - 1;