diff --git a/misc/completion/bash/git-bug b/misc/completion/bash/git-bug index 42263e093a8e6cb538b922abfed3b8bbdb0bcfaf..49c7c77bf9590e2ddd26ff43e33ed41b50532ea6 100644 --- a/misc/completion/bash/git-bug +++ b/misc/completion/bash/git-bug @@ -352,11 +352,11 @@ _git_bug() { __git-bug_init_completion -n "=:" || return fi - # START PATCH - # replace in the array ("git","bug", ...) to ("git-bug", ...) and adjust the index in cword + # START PATCH + # replace in the array ("git","bug", ...) to ("git-bug", ...) and adjust the index in cword words=("git-bug" "${words[@]:2}") cword=$(($cword-1)) - # END PATCH + # END PATCH __git-bug_debug __git-bug_debug "========= starting completion logic ==========" diff --git a/misc/completion/generate.go b/misc/completion/generate.go index 245c561cde5273913957dda1b717f90a6d497151..b64c1034f672e3a4885f33ae9f8673809252e9bb 100644 --- a/misc/completion/generate.go +++ b/misc/completion/generate.go @@ -66,11 +66,11 @@ _git_bug() { __git-bug_init_completion -n "=:" || return fi - # START PATCH - # replace in the array ("git","bug", ...) to ("git-bug", ...) and adjust the index in cword + # START PATCH + # replace in the array ("git","bug", ...) to ("git-bug", ...) and adjust the index in cword words=("git-bug" "${words[@]:2}") cword=$(($cword-1)) - # END PATCH + # END PATCH __git-bug_debug __git-bug_debug "========= starting completion logic =========="