mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
Better :Ggrep quickfix patterns
This commit is contained in:
@@ -5216,7 +5216,7 @@ function! s:GrepParseLine(options, quiet, dir, line) abort
|
||||
let match = matchlist(a:line, '^\(.\{-\}\):\(.*\)$')
|
||||
if len(match)
|
||||
let entry.module = match[1]
|
||||
let entry.pattern = '\M' . escape(match[2], '\')
|
||||
let entry.pattern = '\M^' . escape(match[2], '\.^$/') . '$'
|
||||
endif
|
||||
endif
|
||||
if empty(entry.module) && a:options.name_count && a:line =~# ':\d\+$'
|
||||
|
||||
Reference in New Issue
Block a user