mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 20:43:46 -05:00
Fix false positve matching :Glog abbreviated SHA
This commit is contained in:
@@ -3405,10 +3405,10 @@ function! s:Log(cmd, bang, line1, line2, ...) abort
|
|||||||
if has('patch-8.0.1782')
|
if has('patch-8.0.1782')
|
||||||
let module = '%o'
|
let module = '%o'
|
||||||
else
|
else
|
||||||
let module = '%[^>]%#'
|
let module = '%[^<> :]%#'
|
||||||
endif
|
endif
|
||||||
let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f >' . module . ' >%m,%-G%.%#'
|
let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f >' . module . ' >%m,%-G%.%#'
|
||||||
silent! exe a:cmd . '!' . s:ShellExpand(before . after)
|
silent! exe a:cmd . '!' . escape(s:ShellExpand(before . after), '|')
|
||||||
redraw!
|
redraw!
|
||||||
copen
|
copen
|
||||||
wincmd p
|
wincmd p
|
||||||
|
|||||||
Reference in New Issue
Block a user