about summary refs log tree commit diff
path: root/Completion/Core/_oldlist
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/_oldlist')
-rw-r--r--Completion/Core/_oldlist1
1 files changed, 1 insertions, 0 deletions
diff --git a/Completion/Core/_oldlist b/Completion/Core/_oldlist
index 04e952655..899a5b1ba 100644
--- a/Completion/Core/_oldlist
+++ b/Completion/Core/_oldlist
@@ -35,6 +35,7 @@ fi
 # existing list (even if it was generated by another widget).
 
 if [[ -z $compstate[old_insert] && -n $compstate[old_list] &&
+      ( $_lastcomp[nmatches] -ne 0 || $WIDGET != $LASTWIDGET ) &&
       $LASTWIDGET != _complete_help && $WIDGET != _complete_help ]]; then
   compstate[old_list]=keep
   return 0