1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

12231: fix compinstall list-prompt setting

This commit is contained in:
Peter Stephenson 2000-07-12 11:04:07 +00:00
parent 046f5da3aa
commit 4f9a7e27d4
2 changed files with 10 additions and 8 deletions

@ -1,3 +1,7 @@
2000-07-12 Peter Stephenson <pws@cambridgesiliconradio.com>
* 12231: Completion/Core/compinstall: fix setting of list-prompt.
2000-07-12 Sven Wischnowsky <wischnow@zsh.org>
* 12229: Doc/Zsh/compsys.yo: fix for list-prompt docs

@ -1394,18 +1394,16 @@ To enable this, edit a prompt to show when scrolling is active; an empty
string turns this feature off. It can contain \`%l' to show the number of
matches as \`current_number/total_number', \`%p' to show the fraction of
the way down the list, or font-control sequences such as %B, %U, %S and the
corresponding %b, %u, %s; quotes will be added automatically. Note that
this is the default behaviour; delete the whole line to turn it off, in
which case the display of completions which don't fit on the screen is
controlled by the LISTMAX parameter (currently ${LISTMAX:-unset}), which
specifies the maximum number to show without asking. Hit return to keep
the current value.
corresponding %b, %u, %s; quotes will be added automatically. Delete the
whole line to turn this behaviour off, in which case the display of
completions which don't fit on the screen is controlled by the LISTMAX
parameter (currently ${LISTMAX:-unset}), which specifies the maximum number
to show without asking. Hit return to keep the current value.
"
[[ -z $haslistp ]] &&
listp='%SAt %p: Hit TAB for more, or the character to insert%s'
vared -eh -p 'prompt> ' -c listp
# Unconditionally use listp; will become '' if empty.
haslistp=1
[[ -z $listp ]] && haslistp=
;;
q) return 1
;;