From 414646769d68285c6db2fa276de07e426f227dcf Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Sat, 18 Oct 2014 21:10:40 +0300 Subject: [PATCH] shell-completion: zsh: Mark a variable as local Variables are global by default, and we certainly don't want _pactl_commands to be a global variable. --- shell-completion/zsh/_pulseaudio | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell-completion/zsh/_pulseaudio b/shell-completion/zsh/_pulseaudio index 1c786dc..5f66ed9 100644 --- a/shell-completion/zsh/_pulseaudio +++ b/shell-completion/zsh/_pulseaudio @@ -229,6 +229,8 @@ _pactl_completion() { _set_remote _pactl_command(){ + local -a _pactl_commands + _pactl_commands=( 'help: show help and exit' 'stat: dump statistics about the PulseAudio daemon' -- 2.7.4