Skip to content

Commit

Permalink
Protect ProtectedMap manually
Browse files Browse the repository at this point in the history
Otherwise things blow up when starting the repl.
  • Loading branch information
kotarak committed Jul 4, 2010
1 parent f5d2512 commit f0ccf5e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions autoload/vimclojure.vim
Expand Up @@ -197,13 +197,15 @@ function! vimclojure#MapCommandPlug(mode, keys, plug)
endif
endfunction

function! vimclojure#ProtectedPlug(f, ...)
try
return call(a:f, a:000)
catch /.*/
call vimclojure#ReportError(v:exception)
endtry
endfunction
if !exists("*vimclojure#ProtectedPlug")
function vimclojure#ProtectedPlug(f, args)
try
return call(a:f, a:args)
catch /.*/
call vimclojure#ReportError(v:exception)
endtry
endfunction
endif

" A Buffer...
if !exists("g:vimclojure#SplitPos")
Expand Down

0 comments on commit f0ccf5e

Please sign in to comment.