complete: don't complete bare pattern after -f

This commit is contained in:
dana 2018-08-26 23:58:58 -05:00 committed by Andrew Gallant
parent 40e310a9f9
commit d599f0b3c7

View File

@ -71,7 +71,7 @@ _rg() {
$no'--no-encoding[use default text encoding]' $no'--no-encoding[use default text encoding]'
+ file # File-input options + file # File-input options
'*'{-f+,--file=}'[specify file containing patterns to search for]: :_files' '(1)*'{-f+,--file=}'[specify file containing patterns to search for]: :_files'
+ '(file-match)' # Files with/without match options + '(file-match)' # Files with/without match options
'(stats)'{-l,--files-with-matches}'[only show names of files with matches]' '(stats)'{-l,--files-with-matches}'[only show names of files with matches]'