zsh:functions:nvim-man: Use portable flag for man

The macos version of man does not have the long versions of the flags.
This commit is contained in:
2021-03-10 13:35:33 +01:00
parent 48dc9ca561
commit 17ef6a23e5

View File

@@ -375,7 +375,7 @@ git-commit-last-msg() {
nvim-man() {
# Check for existence of man page. Assume that the page was specified as the
# last argument.
command man --where "${@[$#]}" >/dev/null || return
command man -w "${@[$#]}" >/dev/null || return
if (( $+commands[nvim] )) && [[ $# -eq 1 ]]; then
# $MANPAGER does the trick too but lines are hard-wrapped.