Restore fireplace#eval for compatibility

Use fireplace#session_eval if you want to evaluate something from the
user, and fireplace#evalparse if you want to query for information.
This commit is contained in:
Tim Pope 2014-01-12 14:58:28 -05:00
parent b56e40a2b6
commit 7c0c524259

View File

@ -569,6 +569,10 @@ function! fireplace#session_eval(expr, ...) abort
throw err
endfunction
function! fireplace#eval(...) abort
return call('fireplace#session_eval', a:000)
endfunction
function! fireplace#echo_session_eval(expr, ...) abort
try
echo fireplace#session_eval(a:expr, a:0 ? a:1 : {})