Permit !, + and - to be used for window targets to specify last window (!), or

next and previous window by number (+ and -).

Also tidy an if in cmd-new-window.c.
This commit is contained in:
Nicholas Marriott
2010-01-19 21:27:47 +00:00
parent f569950664
commit 7d75dbbdda
3 changed files with 75 additions and 22 deletions

7
tmux.1
View File

@ -307,6 +307,13 @@ commands)
otherwise the current window in
.Em session
is chosen.
The special character
.Ql \&!
uses the last (previously current) window, or
.Ql +
and
.Ql -
are the next window or the previous window by number.
When the argument does not contain a colon,
.Nm
first attempts to parse it as window; if that fails, an attempt is made to