mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
unposted: off-by-one error looking for dynamic directory name in completion
This commit is contained in:
parent
57418f3c7d
commit
895222b813
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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' \
|
||||
|
|
Loading…
Reference in a new issue