Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Difficulties with _oldlist



As far as I can tell, this is working.

Index: Completion/Base/Completer/_oldlist
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Completer/_oldlist,v
retrieving revision 1.1
diff -u -r1.1 _oldlist
--- Completion/Base/Completer/_oldlist	2 Apr 2001 11:08:37 -0000	1.1
+++ Completion/Base/Completer/_oldlist	13 Sep 2004 13:20:28 -0000
@@ -15,7 +15,7 @@
 
 if [[ -n $compstate[old_list] && $list != never &&
       $LASTWIDGET != _complete_help && $WIDGET != _complete_help ]]; then
-  if [[ $WIDGET = *list* && ( $list = always || $list != shown ) ]]; then
+  if [[ $WIDGETSTYLE = *list* && ( $list = always || $list != shown ) ]]; then
     compstate[old_list]=keep
     return 0
   elif [[ $list = *${_lastcomp[completer]}* ]]; then
@@ -39,11 +39,11 @@
       $LASTWIDGET != _complete_help && $WIDGET != _complete_help ]]; then
   compstate[old_list]=keep
   return 0
-elif [[ $WIDGET = *complete(|-prefix|-word) ]] &&
+elif [[ $WIDGETSTYLE = *complete(|-prefix|-word) ]] &&
      zstyle -T ":completion:${curcontext}:" old-menu; then
   if [[ -n $compstate[old_insert] ]]; then
     compstate[old_list]=keep
-    if [[ $WIDGET = *reverse* ]]; then
+    if [[ $WIDGETSTYLE = *reverse* ]]; then
       compstate[insert]=$(( compstate[old_insert] - 1 ))
     else
       compstate[insert]=$(( compstate[old_insert] + 1 ))

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author