mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Add pane_last format, GitHub issue 2353.
This commit is contained in:
parent
20fcdcfea1
commit
2ab289980a
1
format.c
1
format.c
@ -2909,6 +2909,7 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
|
||||
format_add(ft, "pane_dead", "%d", wp->fd == -1);
|
||||
else
|
||||
format_add(ft, "pane_dead", "0");
|
||||
format_add(ft, "pane_last", "%d", wp == w->last);
|
||||
|
||||
if (server_check_marked() && marked_pane.wp == wp)
|
||||
format_add(ft, "pane_marked", "1");
|
||||
|
1
tmux.1
1
tmux.1
@ -4773,6 +4773,7 @@ The following variables are available, where appropriate:
|
||||
.It Li "pane_in_mode" Ta "" Ta "1 if pane is in a mode"
|
||||
.It Li "pane_index" Ta "#P" Ta "Index of pane"
|
||||
.It Li "pane_input_off" Ta "" Ta "1 if input to pane is disabled"
|
||||
.It Li "pane_last" Ta "" Ta "1 if last pane"
|
||||
.It Li "pane_left" Ta "" Ta "Left of pane"
|
||||
.It Li "pane_marked" Ta "" Ta "1 if this is the marked pane"
|
||||
.It Li "pane_marked_set" Ta "" Ta "1 if a marked pane is set"
|
||||
|
Loading…
Reference in New Issue
Block a user