about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrank Terbeck <bewater@users.sourceforge.net>2010-07-26 13:56:30 +0000
committerFrank Terbeck <bewater@users.sourceforge.net>2010-07-26 13:56:30 +0000
commitefa5e34c6cc67184b6d866921c6ae8d24ebff92d (patch)
tree0ba976a77100929e2dece8c3008dca19d28a9e2c
parentb116f33f9a2b1768f47260c17393c837264c47c0 (diff)
downloadzsh-efa5e34c6cc67184b6d866921c6ae8d24ebff92d.tar.gz
zsh-efa5e34c6cc67184b6d866921c6ae8d24ebff92d.tar.xz
zsh-efa5e34c6cc67184b6d866921c6ae8d24ebff92d.zip
28101: Fix window completion for tmux version 1.3 and newer
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Unix/Command/_tmux2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fb20627be..f37ba173e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 $
 *****************************************************
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index f2507491f..e9977fbbd 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -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: