diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 24aa945..1cf4e63 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2907,9 +2907,9 @@ function! s:PatchSearchExpr(reverse) abort let pattern = '^[+-]\s*' . escape(substitute(strpart(line, 1), '^\s*\|\s*$', '', ''), '^$.*[]~\') . '\s*$' endif if a:reverse - return '?' . escape(pattern, '/') . "\" + return '?' . escape(pattern, '/?') . "\" else - return '/' . escape(pattern, '/?') . "\" + return '/' . escape(pattern, '/') . "\" endif endif return a:reverse ? '#' : '*'