mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Fix erroneous ? escaping in * pattern
This commit is contained in:
@@ -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 ? '#' : '*'
|
||||
|
||||
Reference in New Issue
Block a user