Skip to content

Commit

Permalink
avoid to error about maxfuncdepth.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jul 3, 2012
1 parent 9d6c56d commit f1bd1ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion autoload/lisper.vim
Expand Up @@ -510,7 +510,13 @@ function! s:lisp._eval(...) dict abort
endfunction

function! s:lisp.eval(exp) dict
return lisper#stringer(self._eval(s:parse(a:exp)))
try
let old_maxfuncdepth = &maxfuncdepth
set maxfuncdepth=2000
return lisper#stringer(self._eval(s:parse(a:exp)))
finally
let &maxfuncdepth = old_maxfuncdepth
endtry
endfunction

function! s:lisp.evalv(exp) dict
Expand Down

0 comments on commit f1bd1ab

Please sign in to comment.