From b94a69425479ddd185872d4eeefded225fd7a860 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 8 Feb 2013 00:32:52 -0500 Subject: [PATCH] Rename foreplay#evalprint to foreplay#eval_prn --- plugin/foreplay.vim | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/plugin/foreplay.vim b/plugin/foreplay.vim index 2cdd579..882c302 100644 --- a/plugin/foreplay.vim +++ b/plugin/foreplay.vim @@ -510,7 +510,7 @@ function! foreplay#eval(expr) abort throw err endfunction -function! foreplay#evalprint(expr) abort +function! foreplay#eval_prn(expr) abort try echo foreplay#eval(a:expr) catch /^Clojure:/ @@ -518,6 +518,10 @@ function! foreplay#evalprint(expr) abort return '' endfunction +function! foreplay#evalprint(expr) abort + return foreplay#eval_prn(a:expr) +endfunction + function! foreplay#evalparse(expr, ...) abort let options = extend({'session': 0}, a:0 ? a:1 : {}) let response = s:eval( @@ -596,7 +600,7 @@ function! s:printop(type) abort endfunction function! s:print_last() abort - call foreplay#evalprint(s:todo) + call foreplay#eval_prn(s:todo) return '' endfunction @@ -604,7 +608,7 @@ function! s:editop(type) abort call feedkeys(&cedit . "\", 'n') let input = s:input(substitute(substitute(s:opfunc(a:type), "\s*;[^\n]*", '', 'g'), '\n\+\s*', ' ', 'g')) if input !=# '' - call foreplay#evalprint(input) + call foreplay#eval_prn(input) endif endfunction @@ -641,7 +645,7 @@ function! s:Eval(bang, line1, line2, count, args) abort catch /^Clojure:/ endtry else - call foreplay#evalprint(expr) + call foreplay#eval_prn(expr) endif return '' endfunction @@ -686,7 +690,7 @@ function! s:inputeval() abort let input = s:input('') redraw if input !=# '' - call foreplay#evalprint(input) + call foreplay#eval_prn(input) endif return '' endfunction