diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Completion/Core/_approximate | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog index 786ebc1fe..27c22ed8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-03-23 Sven Wischnowsky <wischnow@zsh.org> + * 13730: Completion/Core/_approximate: probably no reason to + put the (#a?) flag after an initial tilde in _approximate + anymore + * 13727: Completion/User/_init_d, Completion/User/_make, Doc/Zsh/compsys.yo: add commands and call-command styles; mention some of the more expensive things about completion diff --git a/Completion/Core/_approximate b/Completion/Core/_approximate index 9d294e8c4..0b64db593 100644 --- a/Completion/Core/_approximate +++ b/Completion/Core/_approximate @@ -53,11 +53,12 @@ if (( ! $+functions[compadd] )); then [[ ${argv[(I)-[a-zA-Z]#U[a-zA-Z]#]} -eq 0 && "${#:-$PREFIX$SUFFIX}" -le _comp_correct ]] && return - if [[ "$PREFIX" = \~*/* ]]; then - PREFIX="${PREFIX%%/*}/(#a${_comp_correct})${PREFIX#*/}" - else + ### This distinction doesn't seem to be needed anymore + # if [[ "$PREFIX" = \~*/* ]]; then + # PREFIX="${PREFIX%%/*}/(#a${_comp_correct})${PREFIX#*/}" + # else PREFIX="(#a${_comp_correct})$PREFIX" - fi + # fi builtin compadd "$_correct_expl[@]" "$@" } fi |