diff options
Diffstat (limited to 'Completion/User')
-rw-r--r-- | Completion/User/_man | 2 | ||||
-rw-r--r-- | Completion/User/_nedit | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Completion/User/_man b/Completion/User/_man index 8f255c411..26f41b606 100644 --- a/Completion/User/_man +++ b/Completion/User/_man @@ -2,7 +2,7 @@ local rep expl star approx mrd -if [[ $words[1] == man ]] && (( $words[(I)-l] + $words[(I)--local-file] )); then +if [[ $service == man ]] && (( $words[(I)-l] + $words[(I)--local-file] )); then _files || return 0 fi diff --git a/Completion/User/_nedit b/Completion/User/_nedit index 5d8e329a8..f25ad503a 100644 --- a/Completion/User/_nedit +++ b/Completion/User/_nedit @@ -14,7 +14,7 @@ nedit_common=( \ '*-xrm:resource:_x_resource' \ '*:file:_files' ) -if [[ $words[1] = *nc ]]; then +if [[ $service = *nc ]]; then _x_arguments -C \ '(-noask)-ask[prompt if no server found]' \ '(-ask)-noask[start a new server without asking if none found]' \ |