From 22fff8213ed62e1e457689f0635f2ead752d7562 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 23 Aug 2021 01:46:04 -0400 Subject: [PATCH] Better :Ggrep quickfix patterns --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b694658..07b46fe 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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\+$'