From 5de84477acd1abe1f192547ea22c46bcca9be63c Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 12 Apr 2000 09:28:56 +0000 Subject: keep _oldlist from using the dummy match inserted for warnings (10691) --- Completion/Core/_oldlist | 1 + 1 file changed, 1 insertion(+) (limited to 'Completion/Core/_oldlist') 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 -- cgit 1.4.1