diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 8f81bc9..c71edcb 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -334,7 +334,7 @@ fu! s:MatchedItems(items, pat, limit) retu newitems endf fu! s:SplitPattern(str) "{{{1 - let str = s:sanstail(a:str) + let str = a:str if s:migemo && s:regexp && len(str) > 0 && executable('cmigemo') let str = s:migemo(str) en @@ -402,16 +402,14 @@ endf fu! s:Update(str) " Get the previous string if existed let oldstr = exists('s:savestr') ? s:savestr : '' - let pat = s:SplitPattern(a:str) " Get the new string sans tail - let notail = substitute(a:str, '\\\\', '\', 'g') - let notail = substitute(notail, '\\\@