* AUTO_LIST patch
@ 1995-07-11 20:58 Zefram
0 siblings, 0 replies; only message in thread
From: Zefram @ 1995-07-11 20:58 UTC (permalink / raw)
To: Z Shell workers mailing list
-----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-----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-07-11 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-07-11 20:58 AUTO_LIST patch Zefram
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).