1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 06:00:54 +01:00

fix completion after tilde and equal sign inside quotes (11429)

This commit is contained in:
Sven Wischnowsky 2000-05-17 06:50:03 +00:00
parent f8551053e5
commit f63d4066ba
2 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2000-05-17 Sven Wischnowsky <wischnow@zsh.org>
* 11429: Completion/Core/_main_complete: fix completion after
tilde and equal sign inside quotes
2000-05-17 Tanaka Akira <akr@zsh.org>
* 11426: Src/Modules/zpty.c: don't use #elif.

View file

@ -45,11 +45,13 @@ fi
# Special completion contexts after `~' and `='.
if compset -P 1 '='; then
compstate[context]=equal
elif [[ "$PREFIX" != */* && "$PREFIX[1]" = '~' ]]; then
compset -p 1
compstate[context]=tilde
if [[ -z "$compstate[quote]" ]]; then
if compset -P 1 '='; then
compstate[context]=equal
elif [[ "$PREFIX" != */* && "$PREFIX[1]" = '~' ]]; then
compset -p 1
compstate[context]=tilde
fi
fi
# Initial setup.