mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-10 10:21:23 +02:00
zsh-workers/8479
This commit is contained in:
parent
a1eca6d8eb
commit
cfa7436ee6
2 changed files with 6 additions and 5 deletions
|
@ -47,15 +47,16 @@
|
||||||
# # The default is to search the last 100 lines.
|
# # The default is to search the last 100 lines.
|
||||||
# max=10
|
# max=10
|
||||||
# fi
|
# fi
|
||||||
# # We first search in the last ten lines, then in the last
|
# # We first search in the last ten words, then in the last
|
||||||
# # twenty lines, and so on...
|
# # twenty words, and so on...
|
||||||
# while [[ i -le max ]]; do
|
# while [[ i -le max ]]; do
|
||||||
# if [[ -n "$compconfig[history_sort]" ]]; then
|
# if [[ -n "$compconfig[history_sort]" ]]; then
|
||||||
# _description expl "history ($n)"
|
# _description expl "history ($n)"
|
||||||
# else
|
# else
|
||||||
# _description -V expl "history ($n)"
|
# _description -V expl "history ($n)"
|
||||||
# fi
|
# fi
|
||||||
# if compadd "$expl[@]" -Q - "${(@)historywords:#[\$'\"]*}"; then
|
# if compadd "$expl[@]" -Q - \
|
||||||
|
# "${(@)${(@)historywords:#[\$'\"]*}[1,i*10]}"; then
|
||||||
# # We have found at least one matching word, so we switch
|
# # We have found at least one matching word, so we switch
|
||||||
# # on menu-completion and make sure that no other
|
# # on menu-completion and make sure that no other
|
||||||
# # completion function is called by setting _compskip.
|
# # completion function is called by setting _compskip.
|
||||||
|
|
|
@ -10,7 +10,7 @@ local nm=$compstate[nmatches] menu match matcher
|
||||||
|
|
||||||
typeset -U prepaths exppaths
|
typeset -U prepaths exppaths
|
||||||
|
|
||||||
setopt localoptions nullglob rcexpandparam
|
setopt localoptions nullglob rcexpandparam globdots
|
||||||
unsetopt markdirs globsubst shwordsplit nounset
|
unsetopt markdirs globsubst shwordsplit nounset
|
||||||
|
|
||||||
local sopt='-' gopt='' opt
|
local sopt='-' gopt='' opt
|
||||||
|
@ -210,7 +210,7 @@ for prepath in "$prepaths[@]"; do
|
||||||
# Get the matching files by globbing.
|
# Get the matching files by globbing.
|
||||||
|
|
||||||
if [[ "$tpre$tsuf" = */* ]]; then
|
if [[ "$tpre$tsuf" = */* ]]; then
|
||||||
tmp1=( ${^tmp1}*(-D/) )
|
tmp1=( ${^tmp1}*(-/) )
|
||||||
else
|
else
|
||||||
tmp1=( ${^tmp1}${^~pats} )
|
tmp1=( ${^tmp1}${^~pats} )
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue