mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03: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 cmd = ['--no-pager', 'grep', '-n', '--no-color', '--full-name']
|
||||||
let tree = s:Tree(dir)
|
let tree = s:Tree(dir)
|
||||||
let args = a:options.subcommand_args
|
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]
|
let args = args[1:-1]
|
||||||
endif
|
endif
|
||||||
let name_only = s:HasOpt(args, '-l', '--files-with-matches', '--name-only', '-L', '--files-without-match')
|
let name_only = s:HasOpt(args, '-l', '--files-with-matches', '--name-only', '-L', '--files-without-match')
|
||||||
|
|||||||
Reference in New Issue
Block a user