(helm): Proper fix for #5046

PR #5072 followed by #5406 tweaked the handling of the associative
array 'aliashash' when in zsh.  However, upon further investigation
the root of the problem was the 'aliashash' was not being declared
properly as it was declared within a method and therefore not
accessible to the rest of the completion script.

The previous commit of this PR makes the necessary change to properly
declare 'aliashash' which makes the previous tweak unecessary.  This
commit removes the tweak.

Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
pull/5680/head
Marc Khouzam 6 years ago
parent 3e1ca6fe6e
commit 0239cc4457

@ -205,7 +205,6 @@ __helm_convert_bash_to_zsh() {
-e "s/${LWORD}compopt${RWORD}/__helm_compopt/g" \ -e "s/${LWORD}compopt${RWORD}/__helm_compopt/g" \
-e "s/${LWORD}declare${RWORD}/builtin declare/g" \ -e "s/${LWORD}declare${RWORD}/builtin declare/g" \
-e "s/\\\$(type${RWORD}/\$(__helm_type/g" \ -e "s/\\\$(type${RWORD}/\$(__helm_type/g" \
-e 's/aliashash\["\(.\{1,\}\)"\]/aliashash[\1]/g' \
-e 's/FUNCNAME/funcstack/g' \ -e 's/FUNCNAME/funcstack/g' \
<<'BASH_COMPLETION_EOF' <<'BASH_COMPLETION_EOF'
` `

Loading…
Cancel
Save