about summary refs log tree commit diff
path: root/Completion/User/_rcs
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User/_rcs')
-rw-r--r--Completion/User/_rcs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/User/_rcs b/Completion/User/_rcs
index 1e0fa315a..11cb7a59f 100644
--- a/Completion/User/_rcs
+++ b/Completion/User/_rcs
@@ -1,14 +1,14 @@
 #compdef co ci rcs
 
-local cmd="${words[1]:t}" ret=1
+local ret=1
 
-if [[ -d RCS && $cmd != ci ]]; then
+if [[ -d RCS && $service != ci ]]; then
   local rep expl
 
   rep=(RCS/*,v(:t:s/\,v//))
   (( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
 fi
 
-[[ $cmd = ci || $cmd = rcs || ret -eq 1 ]] && _files && ret=0
+[[ $service = ci || $service = rcs || ret -eq 1 ]] && _files && ret=0
 
 return ret