From 5deb57bbca49eb370538fc295ba4b2988f9f5e09 Mon Sep 17 00:00:00 2001 From: tomerf Date: Sat, 8 Apr 2017 17:45:37 +0300 Subject: [PATCH] Fixed completion of dash parameters arguments (#415) --- bash_completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completions.go b/bash_completions.go index 59e90f9..a0d0402 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -88,8 +88,8 @@ __handle_reply() local index flag flag="${cur%%=*}" __index_of_word "${flag}" "${flags_with_completion[@]}" + COMPREPLY=() if [[ ${index} -ge 0 ]]; then - COMPREPLY=() PREFIX="" cur="${cur#*=}" ${flags_completion[${index}]}