diff options
author | Oliver Kiddle <opk@zsh.org> | 2016-11-16 09:42:49 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2016-11-16 09:42:49 +0100 |
commit | 7d2f8050088f61444fc6117cf1e7bfe8d440d73c (patch) | |
tree | fc912a644bc765da73ea89a6ad09eee7871312f8 /Completion | |
parent | 98b7960c78ef720c3d830bef2258f6aa86c055de (diff) | |
download | zsh-7d2f8050088f61444fc6117cf1e7bfe8d440d73c.tar.gz zsh-7d2f8050088f61444fc6117cf1e7bfe8d440d73c.tar.xz zsh-7d2f8050088f61444fc6117cf1e7bfe8d440d73c.zip |
39945: allow further tab presses to move on to menu completion even when compstate[insert] is emptied
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/Core/_message | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Base/Core/_message b/Completion/Base/Core/_message index 13c83989f..4d5645eaf 100644 --- a/Completion/Base/Core/_message +++ b/Completion/Base/Core/_message @@ -18,7 +18,8 @@ if [[ "$1" = -e ]]; then ret=0 done - (( $compstate[nmatches] )) || compstate[insert]= + (( ! $compstate[nmatches] )) && [[ $compstate[insert] = *unambiguous* ]] && + compstate[insert]= return ret fi |