1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-06 09:01:13 +02:00

28101: Fix window completion for tmux version 1.3 and newer

This commit is contained in:
Frank Terbeck 2010-07-26 13:56:30 +00:00
parent b116f33f9a
commit efa5e34c6c
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-07-19 Frank Terbeck <ft@bewatermyfriend.org>
* 28101: Completion/Unix/Command/_tmux: Fix window completion
for tmux version 1.3 and newer.
2010-07-25 Peter Stephenson <p.w.stephenson@ntlworld.com>
* unposted: Config/version.mk: update to 4.3.10-dev-2.
@ -13413,5 +13418,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5034 $
* $Revision: 1.5035 $
*****************************************************

View file

@ -1479,7 +1479,7 @@ function __tmux-windows() {
else
opts=( )
fi
wins=( ${${(f)"$(command tmux list-windows "${opts[@]}")"}/:[ $'\t']##/:} )
wins=( ${${(M)${(f)"$(command tmux list-windows "${opts[@]}")"}:#<->*}/:[ $'\t']##/:} )
_describe -t windows 'windows' wins "$@"
if [[ ${IPREFIX} != *: ]]; then
_wanted sessions expl 'sessions' __tmux-sessions -S: