From 671a85dabaed7e21aa7e435adfdad9b9461cb7d8 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 30 Nov 2019 17:19:23 -0500 Subject: [PATCH] Fix erroneous ? escaping in * pattern --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ? '#' : '*'