From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3699 invoked from network); 11 Apr 2000 10:41:10 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Apr 2000 10:41:10 -0000 Received: (qmail 26689 invoked by alias); 11 Apr 2000 10:40:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10648 Received: (qmail 26676 invoked from network); 11 Apr 2000 10:40:58 -0000 Date: Tue, 11 Apr 2000 12:40:51 +0200 (MET DST) Message-Id: <200004111040.MAA04412@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Tue, 11 Apr 2000 14:33:19 +0400 Subject: Re: _oldlist and _complete_help oddities Andrej Borsenkow wrote: > bor@itsrm2% ls > bor@itsrm2% ls > ... > bor@itsrm2% ls ^Xh > Completing file > CVS/ ChangeLog ChangeLog.3.0 Completion/ Config/ > ... > > List is not redrawn. Oops. _oldlist should not only ignore the list from _complete_help, it should also avoid to re-use an old list if _complete_help is called. And now the tests there really make me think that there has to be a cleaner way... Bye Sven Index: Completion/Core/_oldlist =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Core/_oldlist,v retrieving revision 1.3 diff -u -r1.3 _oldlist --- Completion/Core/_oldlist 2000/04/11 09:40:13 1.3 +++ Completion/Core/_oldlist 2000/04/11 10:39:22 @@ -14,7 +14,7 @@ # completer named by the oldlist_list key. if [[ -n $compstate[old_list] && $list != never && - $LASTWIDGET != _complete_help ]]; then + $LASTWIDGET != _complete_help && $WIDGET != _complete_help ]]; then if [[ $WIDGET = *list* && ( $list = always || $list != shown ) ]]; then compstate[old_list]=keep return 0 @@ -35,7 +35,7 @@ # existing list (even if it was generated by another widget). if [[ -z $compstate[old_insert] && -n $compstate[old_list] && - $LASTWIDGET != _complete_help ]]; then + $LASTWIDGET != _complete_help && $WIDGET != _complete_help ]]; then compstate[old_list]=keep return 0 elif [[ $WIDGET = *complete(|-prefix|-word) ]] && -- Sven Wischnowsky wischnow@informatik.hu-berlin.de