mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Tighten loose regexp
This commit is contained in:
@@ -4736,7 +4736,7 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort
|
||||
let cmd = ['--no-pager', 'grep', '-n', '--no-color', '--full-name']
|
||||
let tree = s:Tree(dir)
|
||||
let args = a:options.subcommand_args
|
||||
if get(args, 0, '') =~# '^-O\|--open-files-in-pager$'
|
||||
if get(args, 0, '') =~# '^\%(-O\|--open-files-in-pager\)$'
|
||||
let args = args[1:-1]
|
||||
endif
|
||||
let name_only = s:HasOpt(args, '-l', '--files-with-matches', '--name-only', '-L', '--files-without-match')
|
||||
|
||||
Reference in New Issue
Block a user