Merge remote-tracking branch 'lenormf/fix-man-expr-reserved-words'
This commit is contained in:
commit
a547b630ef
|
@ -67,10 +67,13 @@ The page can be a word, or a word directly followed by a section number between
|
||||||
subject=${@-$kak_selection}
|
subject=${@-$kak_selection}
|
||||||
|
|
||||||
## The completion suggestions display the page number, strip them if present
|
## The completion suggestions display the page number, strip them if present
|
||||||
pagenum=$(expr "$subject" : '.*(\([1-8].*\))')
|
case "${subject}" in
|
||||||
if [ -n "$pagenum" ]; then
|
*\([1-8]*\))
|
||||||
subject=${subject%%\(*}
|
pagenum="${subject##*(}"
|
||||||
fi
|
pagenum="${pagenum%)}"
|
||||||
|
subject="${subject%%(*}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
printf %s\\n "eval -collapse-jumps -try-client %opt{docsclient} man-impl $pagenum $subject"
|
printf %s\\n "eval -collapse-jumps -try-client %opt{docsclient} man-impl $pagenum $subject"
|
||||||
} }
|
} }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user