Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2019-03-25 15:57:47 +00:00
commit a07ad6b5a3
2 changed files with 41 additions and 24 deletions

View File

@ -504,14 +504,13 @@ have_event:
m->statusat = status_at_line(c); m->statusat = status_at_line(c);
if (m->statusat != -1 && if (m->statusat != -1 &&
y >= (u_int)m->statusat && y >= (u_int)m->statusat &&
y < m->statusat + status_line_size(c)) y < m->statusat + status_line_size(c)) {
sr = status_get_range(c, x, y - m->statusat); sr = status_get_range(c, x, y - m->statusat);
else if (sr == NULL)
sr = NULL; return (KEYC_UNKNOWN);
if (sr != NULL) {
switch (sr->type) { switch (sr->type) {
case STYLE_RANGE_NONE: case STYLE_RANGE_NONE:
break; return (KEYC_UNKNOWN);
case STYLE_RANGE_LEFT: case STYLE_RANGE_LEFT:
where = STATUS_LEFT; where = STATUS_LEFT;
break; break;
@ -520,10 +519,11 @@ have_event:
break; break;
case STYLE_RANGE_WINDOW: case STYLE_RANGE_WINDOW:
wl = winlink_find_by_index(&s->windows, sr->argument); wl = winlink_find_by_index(&s->windows, sr->argument);
if (wl != NULL) { if (wl == NULL)
return (KEYC_UNKNOWN);
m->w = wl->window->id; m->w = wl->window->id;
where = STATUS; where = STATUS;
}
break; break;
} }
} }

47
tmux.1
View File

@ -629,13 +629,13 @@ refers to a
.Nm .Nm
command, passed with the command and arguments separately, for example: command, passed with the command and arguments separately, for example:
.Bd -literal -offset indent .Bd -literal -offset indent
bind-key F1 set-window-option synchronize-panes on bind-key F1 set-option status off
.Ed .Ed
.Pp .Pp
Or if using Or if using
.Xr sh 1 : .Xr sh 1 :
.Bd -literal -offset indent .Bd -literal -offset indent
$ tmux bind-key F1 set-window-option synchronize-panes on $ tmux bind-key F1 set-option status off
.Ed .Ed
.Pp .Pp
Multiple commands may be specified together as part of a Multiple commands may be specified together as part of a
@ -1983,7 +1983,7 @@ and unzoomed (its normal position in the layout).
begins mouse resizing (only valid if bound to a mouse key binding, see begins mouse resizing (only valid if bound to a mouse key binding, see
.Sx MOUSE SUPPORT ) . .Sx MOUSE SUPPORT ) .
.It Xo Ic resize-window .It Xo Ic resize-window
.Op Fl aADLUR .Op Fl aADLRU
.Op Fl t Ar target-window .Op Fl t Ar target-window
.Op Fl x Ar width .Op Fl x Ar width
.Op Fl y Ar height .Op Fl y Ar height
@ -1998,24 +1998,22 @@ with
.Fl L .Fl L
or or
.Fl R , .Fl R ,
or
to an absolute size to an absolute size
with with
.Fl x .Fl x
or or
.Fl y , .Fl y .
or to the size of the smallest or largest session (with
.Fl a
or
.Fl A ) .
The The
.Ar adjustment .Ar adjustment
is given in lines or cells (the default is 1). is given in lines or cells (the default is 1).
.Pp .Fl A
This command automatically sets the sets the size of the largest session containing the window;
.Fl a
the size of the smallest.
This command will automatically set
.Ic window-size .Ic window-size
option to to manual in the window options.
.Ar manual
for the window.
.It Xo Ic respawn-pane .It Xo Ic respawn-pane
.Op Fl c Ar start-directory .Op Fl c Ar start-directory
.Op Fl k .Op Fl k
@ -2785,6 +2783,10 @@ or
This option should be configured when This option should be configured when
.Nm .Nm
is used as a login shell. is used as a login shell.
.It Ic default-size Ar XxY
Set the default size of windows when the size is not set or the
.Ic window-size
option is manual.
.It Xo Ic destroy-unattached .It Xo Ic destroy-unattached
.Op Ic on | off .Op Ic on | off
.Xc .Xc
@ -3397,6 +3399,21 @@ see the
.Sx STYLES .Sx STYLES
section. section.
.Pp .Pp
.It Xo Ic window-size
.Op Ic smallest | largest | manual
.Xc
Tell
.Nm
how to automatically size windows either the size of the smallest session
containing the window, the size of the largest, or manual size.
See also the
.Ic resize-window
command and the
.Ic default-size
and
.Ic aggressive-resize
options.
.Pp
.It Xo Ic wrap-search .It Xo Ic wrap-search
.Op Ic on | off .Op Ic on | off
.Xc .Xc
@ -3963,7 +3980,7 @@ and
A style may be the single term A style may be the single term
.Ql default .Ql default
to specify the default style (which may inherit from another option) or a space to specify the default style (which may inherit from another option) or a space
separated list of the following: or comma separated list of the following:
.Bl -tag -width Ds .Bl -tag -width Ds
.It Ic fg=colour .It Ic fg=colour
Set the foreground colour. Set the foreground colour.
@ -4064,7 +4081,7 @@ is a window index.
.Pp .Pp
Examples are: Examples are:
.Bd -literal -offset indent .Bd -literal -offset indent
fg=yellow,bold,underscore,blink fg=yellow bold underscore blink
bg=black,fg=default,noreverse bg=black,fg=default,noreverse
.Ed .Ed
.Sh NAMES AND TITLES .Sh NAMES AND TITLES