Better :Ggrep quickfix patterns

This commit is contained in:
Tim Pope
2021-08-23 01:46:04 -04:00
parent 0bd41bd387
commit 22fff8213e

View File

@@ -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\+$'