rc man: Gracefully fail link search

This commit is contained in:
Frank LENORMAND 2021-11-04 07:31:43 +03:00
parent b7452f2c7e
commit 6abcb891ea

View File

@ -109,7 +109,11 @@ declare-option -hidden regex man_link2 \
# and a given sequence of search keys.
define-command man-search -params 2 %{
set-register / %arg[1]
try %{
execute-keys %arg[2]
} catch %{
fail "Could not find man page link"
}
}
define-command -docstring 'Go to next man page link' \