zsh/zsh-4.3.10-run-help_pager.patch
OBS User autobuild 81b5c7e539 Accepting request 18109 from shells
Copy from shells/zsh based on submit request 18109 from user hennevogel

OBS-URL: https://build.opensuse.org/request/show/18109
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zsh?expand=0&rev=12
2009-08-18 22:11:24 +00:00

21 lines
526 B
Diff

--- Functions/Misc/run-help
+++ Functions/Misc/run-help
@@ -30,7 +30,7 @@
return 0
elif [[ -n "${HELPDIR:-}" && -r $HELPDIR/$1 && $1 != compctl ]]
then
- ${=PAGER:-more} $HELPDIR/$1
+ ${=PAGER:-less -M} $HELPDIR/$1
return $?
fi
@@ -64,7 +64,7 @@
(comp*) man zshcompsys;;
(zf*) man zshftpsys;;
(run-help) man zshcontrib;;
- (*) builtin functions ${what[(w)1]} | ${=PAGER:-more};;
+ (*) builtin functions ${what[(w)1]} | ${=PAGER:-less -M};;
esac;;
(*( is a * builtin))
case ${what[(w)1]} in