From 362f31e1ff9cc655b2285a393fdd63c89cc96378 Mon Sep 17 00:00:00 2001 From: Dario Sneidermanis Date: Mon, 25 Nov 2013 01:59:47 -0200 Subject: [PATCH] Allow to disable tail commands from an extension --- autoload/ctrlp.vim | 3 +++ 1 file changed, 3 insertions(+) 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 =~ '\\\@