Re: Bug in exception handling with :return

2008-09-15 Fir de Conversatie Bram Moolenaar
Matt Wozniski wrote: These two functions ought to behave identically, but don't... For some reason, the :catch never gets triggered for the Broken one. function! Working() try let y = x return y catch /^Vim\%((\a\+)\)\=:E121/ Handle 'Undefined variable' errors

Bug in exception handling with :return

2008-09-14 Fir de Conversatie Matt Wozniski
These two functions ought to behave identically, but don't... For some reason, the :catch never gets triggered for the Broken one. function! Working() try let y = x return y catch /^Vim\%((\a\+)\)\=:E121/ Handle 'Undefined variable' errors return 42 endtry endfunction