1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 17:20:25 +02:00

manual/8992

This commit is contained in:
Tanaka Akira 1999-12-10 14:47:55 +00:00
parent d5d015115c
commit 188e6569db
49 changed files with 1061 additions and 699 deletions

View file

@ -25,9 +25,9 @@ _history_complete_word () {
direction=older
fi
_style -s history-words stop stop
zstyle -s ":completion${curcontext}:history-words" stop stop
_style history-words list || compstate[list]=''
zstyle -t ":completion${curcontext}:history-words" list || compstate[list]=''
if [[ -n "$compstate[old_list]" &&
( -n "$stop" || "$compstate[insert]" = menu ) ]] ; then
@ -67,14 +67,14 @@ _history_complete_word () {
}
_history_complete_word_gen_matches () {
if _style history-words list; then
if _style history-words sort; then
if zstyle -t ":completion${curcontext}:history-words" list; then
if zstyle -t ":completion${curcontext}:history-words" sort; then
_description history-words expl 'history word'
else
_description -V history-words expl 'history word'
fi
else
if _style history-words sort; then
if zstyle -t ":completion${curcontext}:history-words" sort; then
expl=()
else
expl=('-V' '')
@ -84,7 +84,7 @@ _history_complete_word_gen_matches () {
[[ -n "$_hist_stop" ]] && PREFIX="$_hist_old_prefix"
local rem_dups
if _style history-words remove-all-dups; then
if zstyle -t ":completion${curcontext}:history-words" remove-all-dups; then
rem_dups=''
else
rem_dups='-1'