diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-10-02 15:46:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-10-02 15:46:25 +0000 |
commit | 895222b81316992ba3a624faa612f36ad9c93516 (patch) | |
tree | f2119a71520d6339f59fabb393bb24184ae2e94d /Completion/Zsh/Context/_subscript | |
parent | 57418f3c7d72bda89fe5819882ed6d0a42c3a1b6 (diff) | |
download | zsh-895222b81316992ba3a624faa612f36ad9c93516.tar.gz zsh-895222b81316992ba3a624faa612f36ad9c93516.tar.xz zsh-895222b81316992ba3a624faa612f36ad9c93516.zip |
unposted: off-by-one error looking for dynamic directory name in completion
Diffstat (limited to 'Completion/Zsh/Context/_subscript')
-rw-r--r-- | Completion/Zsh/Context/_subscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript index 899845036..b86e8c39e 100644 --- a/Completion/Zsh/Context/_subscript +++ b/Completion/Zsh/Context/_subscript @@ -18,7 +18,7 @@ compset -P '\(([^\(\)]|\(*\))##\)' # remove subscript flags # or colon list. integer pos=$((CURSOR+1)) while [[ pos > 1 && $BUFFER[pos-1] != '[' ]]; do (( pos-- )); done -if [[ $BUFFER[1,pos] = *[[:space:]:=]##\~\[ ]]; then +if [[ $BUFFER[1,pos-1] = *[[:space:]:=]##\~\[ ]]; then _dynamic_directory_name elif [[ "$PREFIX" = :* ]]; then _wanted characters expl 'character class' \ |