From 256cde1884ee30a291b8845e4e817031ffca3e87 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 21 Feb 2000 09:53:40 +0000 Subject: zsh-workers/9809 --- Completion/Core/_approximate | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Completion/Core') diff --git a/Completion/Core/_approximate b/Completion/Core/_approximate index 6c7ae5d77..ac7b41862 100644 --- a/Completion/Core/_approximate +++ b/Completion/Core/_approximate @@ -23,7 +23,7 @@ zstyle -s ":completion:${curcontext}:" max-errors cfgacc || cfgacc='2 numeric' # Get the number of errors to accept. if [[ "$cfgacc" = *numeric* && ${NUMERIC:-1} -ne 1 ]]; then - # Stop if we also have a `!'. + # A numeric argument may mean that we should not try correction. [[ "$cfgacc" = *not-numeric* ]] && return 1 @@ -40,9 +40,9 @@ fi _tags corrections original -# Otherwise temporarily define functions to use instead of -# the builtins that add matches. This is used to be able -# to stick the `(#a...)' into the right place (after an +# Otherwise temporarily define a function to use instead of +# the builtin that adds matches. This is used to be able +# to stick the `(#a...)' in the right place (after an # ignored prefix). compadd() { @@ -72,8 +72,8 @@ while [[ _comp_correct -le comax ]]; do [[ "${#compstate[unambiguous]}" -ge "${#:-$PREFIX$SUFFIX}" ]]; then compstate[pattern_insert]=unambiguous elif _requested original && - ( [[ compstate[nmatches] -gt 1 ]] || - zstyle -t ":completion:${curcontext}:" original ); then + { [[ compstate[nmatches] -gt 1 ]] || + zstyle -t ":completion:${curcontext}:" original }; then local expl _description -V original expl original -- cgit 1.4.1