Make ctrlp#call return the result

This is useful to make extensions/custom match functions to execute
internal methods like MatchIt

Closes #315
This commit is contained in:
Jo De Boeck 2012-11-16 20:00:38 +02:00 committed by Kien N
parent 7251d9dce8
commit 92b0774d35
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -1241,6 +1241,7 @@ Special thanks:~
* Lowe Thiderman <github.com/thiderman>
* Christopher Fredén <github.com/icetan>
* Zahary Karadjov <github.com/zah>
* Jo De Boeck <github.com/grimpy>
===============================================================================
CHANGELOG *ctrlp-changelog*