mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1928: Vim9: "silent!" not effective when list index is wrong
Problem: Vim9: "silent!" not effective when list index is wrong. Solution: Ignore list indes failure when emsg_silent is set. (closes #7232)
This commit is contained in:
@@ -2869,6 +2869,10 @@ func_return:
|
||||
continue;
|
||||
|
||||
on_error:
|
||||
// If "emsg_silent" is set then ignore the error.
|
||||
if (did_emsg == did_emsg_before && emsg_silent)
|
||||
continue;
|
||||
|
||||
// If we are not inside a try-catch started here, abort execution.
|
||||
if (trylevel <= trylevel_at_start)
|
||||
goto failed;
|
||||
|
Reference in New Issue
Block a user