Rename foreplay#evalprint to foreplay#eval_prn
This commit is contained in:
parent
47ea532d8e
commit
b94a694254
@ -510,7 +510,7 @@ function! foreplay#eval(expr) abort
|
|||||||
throw err
|
throw err
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! foreplay#evalprint(expr) abort
|
function! foreplay#eval_prn(expr) abort
|
||||||
try
|
try
|
||||||
echo foreplay#eval(a:expr)
|
echo foreplay#eval(a:expr)
|
||||||
catch /^Clojure:/
|
catch /^Clojure:/
|
||||||
@ -518,6 +518,10 @@ function! foreplay#evalprint(expr) abort
|
|||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! foreplay#evalprint(expr) abort
|
||||||
|
return foreplay#eval_prn(a:expr)
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! foreplay#evalparse(expr, ...) abort
|
function! foreplay#evalparse(expr, ...) abort
|
||||||
let options = extend({'session': 0}, a:0 ? a:1 : {})
|
let options = extend({'session': 0}, a:0 ? a:1 : {})
|
||||||
let response = s:eval(
|
let response = s:eval(
|
||||||
@ -596,7 +600,7 @@ function! s:printop(type) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:print_last() abort
|
function! s:print_last() abort
|
||||||
call foreplay#evalprint(s:todo)
|
call foreplay#eval_prn(s:todo)
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -604,7 +608,7 @@ function! s:editop(type) abort
|
|||||||
call feedkeys(&cedit . "\<Home>", 'n')
|
call feedkeys(&cedit . "\<Home>", 'n')
|
||||||
let input = s:input(substitute(substitute(s:opfunc(a:type), "\s*;[^\n]*", '', 'g'), '\n\+\s*', ' ', 'g'))
|
let input = s:input(substitute(substitute(s:opfunc(a:type), "\s*;[^\n]*", '', 'g'), '\n\+\s*', ' ', 'g'))
|
||||||
if input !=# ''
|
if input !=# ''
|
||||||
call foreplay#evalprint(input)
|
call foreplay#eval_prn(input)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -641,7 +645,7 @@ function! s:Eval(bang, line1, line2, count, args) abort
|
|||||||
catch /^Clojure:/
|
catch /^Clojure:/
|
||||||
endtry
|
endtry
|
||||||
else
|
else
|
||||||
call foreplay#evalprint(expr)
|
call foreplay#eval_prn(expr)
|
||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
@ -686,7 +690,7 @@ function! s:inputeval() abort
|
|||||||
let input = s:input('')
|
let input = s:input('')
|
||||||
redraw
|
redraw
|
||||||
if input !=# ''
|
if input !=# ''
|
||||||
call foreplay#evalprint(input)
|
call foreplay#eval_prn(input)
|
||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user