mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 06:43: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, '^\(.\{-\}\):\(.*\)$')
|
let match = matchlist(a:line, '^\(.\{-\}\):\(.*\)$')
|
||||||
if len(match)
|
if len(match)
|
||||||
let entry.module = match[1]
|
let entry.module = match[1]
|
||||||
let entry.pattern = '\M' . escape(match[2], '\')
|
let entry.pattern = '\M^' . escape(match[2], '\.^$/') . '$'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if empty(entry.module) && a:options.name_count && a:line =~# ':\d\+$'
|
if empty(entry.module) && a:options.name_count && a:line =~# ':\d\+$'
|
||||||
|
|||||||
Reference in New Issue
Block a user