motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 671a85dabaed7e21aa7e435adfdad9b9461cb7d8 (tree)
parent 6d9dd103c020cac9d293df40e685e545ef814f9a
Author: Tim Pope <code@tpope.net>
Date:   Sat, 30 Nov 2019 17:19:23 -0500

Fix erroneous ? escaping in * pattern

Diffstat:
Mautoload/fugitive.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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, '/') . "\<CR>" + return '?' . escape(pattern, '/?') . "\<CR>" else - return '/' . escape(pattern, '/?') . "\<CR>" + return '/' . escape(pattern, '/') . "\<CR>" endif endif return a:reverse ? '#' : '*'