mirror of
https://github.com/tmux/tmux.git
synced 2026-07-03 10:12:31 +00:00
Fix an infinite loop in customize mode when a filter does not match, and
tweak a tmux.1 example.
This commit is contained in:
2
tmux.1
2
tmux.1
@@ -3603,7 +3603,7 @@ The
|
||||
flag will create an empty pane and forward any output from stdin to it.
|
||||
For example:
|
||||
.Bd -literal -offset indent
|
||||
$ make 2>&1|tmux splitw \-dI &
|
||||
$ make 2>&1|tmux new\-pane \-dI &
|
||||
.Ed
|
||||
.Pp
|
||||
All other options have the same meaning as for the
|
||||
|
||||
@@ -472,6 +472,7 @@ window_customize_build_keys(struct window_customize_modedata *data,
|
||||
expanded = format_expand(ft, filter);
|
||||
if (!format_true(expanded)) {
|
||||
free(expanded);
|
||||
bd = key_bindings_next(kt, bd);
|
||||
continue;
|
||||
}
|
||||
free(expanded);
|
||||
|
||||
18
window.c
18
window.c
@@ -2165,6 +2165,15 @@ window_pane_status_get_range(struct window_pane *wp, u_int x, u_int y)
|
||||
return (style_ranges_get_range(srs, x - wp->xoff - 2));
|
||||
}
|
||||
|
||||
enum pane_lines
|
||||
window_get_pane_lines(struct window *w)
|
||||
{
|
||||
struct options *oo;
|
||||
|
||||
oo = w->options;
|
||||
return (options_get_number(oo, "pane-border-lines"));
|
||||
}
|
||||
|
||||
enum pane_lines
|
||||
window_pane_get_pane_lines(struct window_pane *wp)
|
||||
{
|
||||
@@ -2177,15 +2186,6 @@ window_pane_get_pane_lines(struct window_pane *wp)
|
||||
return (options_get_number(oo, "pane-border-lines"));
|
||||
}
|
||||
|
||||
enum pane_lines
|
||||
window_get_pane_lines(struct window *w)
|
||||
{
|
||||
struct options *oo;
|
||||
|
||||
oo = w->options;
|
||||
return (options_get_number(oo, "pane-border-lines"));
|
||||
}
|
||||
|
||||
int
|
||||
window_get_pane_status(struct window *w)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user