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

AUTO_LIST patch



-----BEGIN PGP SIGNED MESSAGE-----

The patch below prevents a superfluous display of a completion list,
which can occur if AUTO_LIST and ALWAYS_LAST_PROMPT are set.  For
example, with some kind of menu completion enabled, and not in a large
directory, do a list-choices (there is now a valid list on the screen),
followed by complete-word (the list is needlessly redrawn).  Note that
the first hunk just gets rid of a superfluous "else" in a related bit
of code.

This patch depends, of course, upon my previous patches to the listing
code.

 -zefram

      *** Src/zle_tricky.c.old	Tue Jul 11 20:39:19 1995
      --- Src/zle_tricky.c	Tue Jul 11 21:46:45 1995
      ***************
      *** 526,532 ****
            
            /* Check if we have to start a menu-completion (via automenu). */
        
      !     else if ((amenu = (isset(AUTOMENU) &&
        		       (lastcmd & ZLE_MENUCMP) &&
        		       lastambig)))
        	usemenu = 1;
      --- 526,532 ----
            
            /* Check if we have to start a menu-completion (via automenu). */
        
      !     if ((amenu = (isset(AUTOMENU) &&
        		       (lastcmd & ZLE_MENUCMP) &&
        		       lastambig)))
        	usemenu = 1;
      ***************
      *** 3234,3240 ****
        	if (unset(NOLISTBEEP))
        	    feep();
        	/* And finally list the matches if needed (and requested). */
      ! 	if (isset(AUTOLIST) && !amenu)
        	    showinglist = -2;
            }
        }
      --- 3234,3240 ----
        	if (unset(NOLISTBEEP))
        	    feep();
        	/* And finally list the matches if needed (and requested). */
      ! 	if (isset(AUTOLIST) && !amenu && !showinglist)
        	    showinglist = -2;
            }
        }

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQBVAgUBMALlzWWJ8JfKi+e9AQE8WgH/XeOVQQ7dXxWk/paufPJBTzKAn7FT6Vdx
UILR5BtppAc7yPI3wngvEBKnqrS0UKGEOFJZ5il5l6/5ucBv7Q3nlg==
=DJvN
-----END PGP SIGNATURE-----



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