mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-07 06:02:21 +01:00
29438: complete dynamic directory names in command position
This commit is contained in:
parent
12e246495c
commit
0bff0b356c
2 changed files with 7 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ compset -P '\(([^\(\)]|\(*\))##\)' # remove subscript flags
|
|||
# or colon list.
|
||||
integer pos=$((CURSOR+1))
|
||||
while [[ pos -gt 1 && $BUFFER[pos-1] != '[' ]]; do (( pos-- )); done
|
||||
if [[ $BUFFER[1,pos-1] = *[[:space:]:=]##\~\[ ]]; then
|
||||
if [[ $BUFFER[1,pos-1] = (|*[[:space:]:=]##)\~\[ ]]; then
|
||||
_dynamic_directory_name
|
||||
elif [[ "$PREFIX" = :* ]]; then
|
||||
_wanted characters expl 'character class' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue