summary refs log tree commit diff
path: root/Completion/bashcompinit
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/bashcompinit')
-rw-r--r--Completion/bashcompinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/bashcompinit b/Completion/bashcompinit
index 902fa88a8..02290a16f 100644
--- a/Completion/bashcompinit
+++ b/Completion/bashcompinit
@@ -8,7 +8,7 @@ _bash_complete() {
   local -x COMP_LINE="$words"
   local -A savejobstates savejobtexts
 
-  (( COMP_POINT = 1 + ${#${(j. .)words[1,CURRENT]}} + $#QIPREFIX + $#IPREFIX + $#PREFIX ))
+  (( COMP_POINT = 1 + ${#${(j. .)words[1,CURRENT-1]}} + $#QIPREFIX + $#IPREFIX + $#PREFIX ))
   (( COMP_CWORD = CURRENT - 1))
   COMP_WORDS=( $words )
   BASH_VERSINFO=( 2 05b 0 1 release )