From 92b0774d35bde0a0e28ea14e23083bfcfe9748af Mon Sep 17 00:00:00 2001 From: Jo De Boeck Date: Fri, 16 Nov 2012 20:00:38 +0200 Subject: [PATCH] Make ctrlp#call return the result This is useful to make extensions/custom match functions to execute internal methods like MatchIt Closes #315 --- autoload/ctrlp.vim | 2 +- doc/ctrlp.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 324ad3a..72f2d6b 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -2054,7 +2054,7 @@ fu! ctrlp#hicheck(grp, defgrp) endf fu! ctrlp#call(func, ...) - cal call(a:func, a:000) + retu call(a:func, a:000) endf "}}}1 " * Initialization {{{1 diff --git a/doc/ctrlp.txt b/doc/ctrlp.txt index 464a6ef..c97860d 100644 --- a/doc/ctrlp.txt +++ b/doc/ctrlp.txt @@ -1241,6 +1241,7 @@ Special thanks:~ * Lowe Thiderman * Christopher Fredén * Zahary Karadjov + * Jo De Boeck =============================================================================== CHANGELOG *ctrlp-changelog*