summaryrefslogtreecommitdiff
path: root/shells/bash-completion/files/patch-bash__completion
blob: 6e6d95fa1a689b12d748c35c8eed0a3f9d962a9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- bash_completion.orig	2015-01-20 16:17:24 UTC
+++ bash_completion
@@ -707,7 +707,7 @@ _init_completion()
         fi
     done
 
-    [[ $cword -eq 0 ]] && return 1
+    [[ $cword -le 0 ]] && return 1
     prev=${words[cword-1]}
 
     [[ ${split-} ]] && _split_longopt && split=true