diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-03-23 13:58:57 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-03-23 13:58:57 +0000 |
commit | 3ae964fc4d6a4c8fdd6811e0212a141ff22c8d2d (patch) | |
tree | 786e578707062d0d1f623b19935707ca9303d3f6 /Completion | |
parent | 6fda33d3abd70bd4c219aac0e8c416270f398fef (diff) | |
download | zsh-3ae964fc4d6a4c8fdd6811e0212a141ff22c8d2d.tar.gz zsh-3ae964fc4d6a4c8fdd6811e0212a141ff22c8d2d.tar.xz zsh-3ae964fc4d6a4c8fdd6811e0212a141ff22c8d2d.zip |
probably no reason to put the (#a?) flag after an initial tilde in _approximate anymore (13730)
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_approximate | 9 |
1 files changed, 5 insertions, 4 deletions
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 |