summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-04-16 10:02:00 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-04-16 10:02:00 +0000
commit28dac24fc69718479c7a83e20689542567aa2c15 (patch)
tree2d71d5f28a53719a80ad6c44d23db3bbf0edcc89 /Completion/Unix/Command
parent29684e7c81ae85ce29f58a707b6339b853565dc6 (diff)
downloadzsh-28dac24fc69718479c7a83e20689542567aa2c15.tar.gz
zsh-28dac24fc69718479c7a83e20689542567aa2c15.tar.xz
zsh-28dac24fc69718479c7a83e20689542567aa2c15.zip
Evgenii Terechkov: 26831: filter out redundant information in _screen
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_screen6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_screen b/Completion/Unix/Command/_screen
index be0e3558d..67c453a03 100644
--- a/Completion/Unix/Command/_screen
+++ b/Completion/Unix/Command/_screen
@@ -98,19 +98,19 @@ if [[ -n $state ]]; then
     attached-sessions)
       sessions=(
         ${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
-            -ls)"}:#*[Aa]ttached*}##[[:blank:]]}%%[[:blank:]]*}
+            -ls 2>/dev/null)"}:#*[Aa]ttached*}##[[:blank:]]}%%[[:blank:]]*}
       )
     ;;
     detached-sessions)
       sessions=(
         ${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
-            -ls)"}:#*[Dd]etached*}##[[:blank:]]}%%[[:blank:]]*}
+            -ls 2>/dev/null)"}:#*[Dd]etached*}##[[:blank:]]}%%[[:blank:]]*}
       )
     ;;
     any-sessions)
       sessions=(
         ${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
-	    -ls)"}:#*tached*}##[[:blank:]]}%%[[:blank:]]*}
+	    -ls 2>/dev/null)"}:#*tached*}##[[:blank:]]}%%[[:blank:]]*}
       )
   esac