runtime(doc): Improve :help :catch command specification

The pattern argument is optional.  See :help :sort for another example.

closes: #18834

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-11-30 09:23:16 +00:00
committed by Christian Brabandt
parent ab090993ad
commit 49f731d243

View File

@ -1,4 +1,4 @@
*eval.txt* For Vim version 9.1. Last change: 2025 Nov 09
*eval.txt* For Vim version 9.1. Last change: 2025 Nov 30
VIM REFERENCE MANUAL by Bram Moolenaar
@ -3698,7 +3698,7 @@ text...
*:cat* *:catch*
*E603* *E604* *E605* *E654* *E1033*
:cat[ch] /{pattern}/ The following commands until the next `:catch`,
:cat[ch] [/{pattern}/] The following commands until the next `:catch`,
`:finally`, or `:endtry` that belongs to the same
`:try` as the `:catch` are executed when an exception
matching {pattern} is being thrown and has not yet