From d599f0b3c7abcce0829c053fbf9ac997844fc3d8 Mon Sep 17 00:00:00 2001 From: dana Date: Sun, 26 Aug 2018 23:58:58 -0500 Subject: [PATCH] complete: don't complete bare pattern after -f --- complete/_rg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complete/_rg b/complete/_rg index a340647..e35b60d 100644 --- a/complete/_rg +++ b/complete/_rg @@ -71,7 +71,7 @@ _rg() { $no'--no-encoding[use default text encoding]' + 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 '(stats)'{-l,--files-with-matches}'[only show names of files with matches]'