mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-08 06:21:40 +01:00
fix completion after tilde and equal sign inside quotes (11429)
This commit is contained in:
parent
f8551053e5
commit
f63d4066ba
2 changed files with 12 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue