Christian wrote:
> I see a potential problem when running `:s/../\=Function/gn` command.
>
> If the function aborts, the sandbox might still be set, which causes an
> unusable Vim. This just happened to me several times with some errors in
> Function. However, when trying to reproduce, aborting() does not seem to
> return True with a simple error (like undefined variable or so), so I
> don't currently know how to create a test for that :(
I can reproduce this. There actually is a check for this in
Test_nocatch_sub_failure_handling(). But it doesn't trigger the problem
there. Ah, it doesn't use the "n" flag. Then it indeed fails.
Thanks, that should fix it.
--
If your company is not involved in something called "ISO 9000" you probably
have no idea what it is. If your company _is_ involved in ISO 9000 then you
definitely have no idea what it is.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///