chiark / gitweb /
bash-completion: fix completion of complete verbs
[elogind.git] / shell-completion / bash / localectl
index bec9e78c64b1a531a6303f2a0ec566dfe0205107..84e2a6b09e83174e151d1fa7b2349baad327db24 100644 (file)
@@ -52,7 +52,7 @@ _localectl() {
                       [X11]='set-x11-keymap'
         )
 
-        for ((i=0; i <= COMP_CWORD; i++)); do
+        for ((i=0; i < COMP_CWORD; i++)); do
                 if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]}; then
                         verb=${COMP_WORDS[i]}
                         break