diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 19ac1463..082d83f0 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -1831,6 +1831,9 @@ fu! s:sanstail(str) \ substitute(a:str, '^\(@.*$\|\\\\\ze@\|\.\.\zs[.\/]\+$\)', '', 'g') : a:str let [str, pat] = [substitute(str, '\\\\', '\', 'g'), '\([^:]\|\\:\)*$'] unl! s:optail + if !s:getextvar('sanstail') + retu str + en if str =~ '\\\@