diff options
author | isaacs <i@izs.me> | 2011-03-24 06:01:07 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-03-24 06:01:15 +0300 |
commit | caafb7323708e113d100e3e8145b949ed7a16c22 (patch) | |
tree | 90a216063516092a9207e3f97cf32dbb0acd97b8 | |
parent | ee66ba9082bb7425bef44973a2306ca1d6c5df64 (diff) |
Fix for zsh completion
The notion of "current word" is off-by-one from bash completion's
COMP_CWORD environ.
-rw-r--r-- | lib/utils/completion.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/completion.sh b/lib/utils/completion.sh index 81252c61e..f19046b19 100644 --- a/lib/utils/completion.sh +++ b/lib/utils/completion.sh @@ -27,6 +27,7 @@ elif compctl &>/dev/null; then local cword line point words si read -Ac words read -cn cword + let cword-=1 read -l line read -ln point si="$IFS" |