mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Salvage :Ggrep ... commit:path/
Resolves: https://github.com/tpope/vim-fugitive/issues/2224
This commit is contained in:
@@ -5701,7 +5701,8 @@ function! s:GrepParseLine(options, quiet, dir, line) abort
|
|||||||
if entry.module !~# ':'
|
if entry.module !~# ':'
|
||||||
let entry.filename = s:PathJoin(a:options.prefix, entry.module)
|
let entry.filename = s:PathJoin(a:options.prefix, entry.module)
|
||||||
else
|
else
|
||||||
let entry.filename = fugitive#Find(entry.module, a:dir)
|
let entry.filename = fugitive#Find(matchstr(entry.module, '^[^:]*:') .
|
||||||
|
\ substitute(matchstr(entry.module, ':\zs.*'), '/\=:', '/', 'g'), a:dir)
|
||||||
endif
|
endif
|
||||||
return entry
|
return entry
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user