Escape '(' in shell parameter expansion in man.kak

Not escaping '(' here led to a 'no closing quote' error on OpenBSD.
This commit is contained in:
codesoap 2019-06-07 21:34:21 +02:00
parent 09e1ec97a9
commit 11dfd4994b

View File

@ -58,9 +58,9 @@ The page can be a word, or a word directly followed by a section number between
## The completion suggestions display the page number, strip them if present
case "${subject}" in
*\([1-8]*\))
pagenum="${subject##*(}"
pagenum="${pagenum%)}"
subject="${subject%%(*}"
pagenum="${subject##*\(}"
pagenum="${pagenum%\)}"
subject="${subject%%\(*}"
;;
esac