diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Zsh/Context/_subscript | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index e278af632..d8b15ac73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-02 Peter Stephenson <pws@csr.com> + + * unposted: Completion/Zsh/Context/_subscript: off-by-one + error in testing for dynamic directory name prefix. + 2008-10-01 Peter Stephenson <pws@csr.com> * 25791: Src/exec.c, Test/C05debug.ztst: force return from 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' \ |