Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: remove duplicated local in _x_utils



I noticed that completion after xhost + was outputting expl=''. This is
because it is declared local twice in _x_utils so the second time it
prints the value. This removes the duplication.

Oliver

Index: Completion/X/Command/_x_utils
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_x_utils,v
retrieving revision 1.5
diff -u -r1.5 _x_utils
--- Completion/X/Command/_x_utils	9 Dec 2011 15:58:35 -0000	1.5
+++ Completion/X/Command/_x_utils	19 Mar 2013 21:45:39 -0000
@@ -69,7 +69,7 @@
     '-rv'
   ;;
 xhost)
-  local expl type ret=1 tmp match
+  local type tmp match
 
   if compset -P '-'; then
     tmp=(${(f)"$(xhost)"})



Messages sorted by: Reverse Date, Date, Thread, Author