From 895222b81316992ba3a624faa612f36ad9c93516 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 2 Oct 2008 15:46:25 +0000 Subject: unposted: off-by-one error looking for dynamic directory name in completion --- Completion/Zsh/Context/_subscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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' \ -- cgit 1.4.1