1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00

17304: tweak to tweak the tweaked tweak for zle -I in 17301

This commit is contained in:
Peter Stephenson 2002-06-07 18:04:06 +00:00
parent 0e08b8c2e4
commit b673918c0f
3 changed files with 11 additions and 3 deletions

@ -1,5 +1,10 @@
2002-06-07 Peter Stephenson <pws@csr.com>
* 17304: Src/Zle/zle_main.c, Doc/Zsh/zle.yo: (suggested by Bart)
tweak the tweaked tweak in 17301 so that zle -I returns status
0 if zle display was successfully invalidated even if by a
previous cal to zle -I (user doesn't care).
* 17299: Src/builtin.c, Src/exec.c, Src/init.c, Src/parse.c,
Src/text.c, Src/zsh.h: Instead of freeing Eprogs in one go
at the top level, use reference counts.

@ -498,7 +498,9 @@ to minimise disruption.
Note that there are normally better ways of manipulating the display from
within zle widgets; see, for example, `tt(zle -R)' above.
The status is zero if the current zle display was invalidated, else one.
The status is zero if zle is active and the current zle display has
been invalidated (even if this was by a previous call to `tt(zle -I)'),
else one.
)
item(var(widget) tt([ -n) var(num) tt(]) tt([ -N ]) var(args) ...)(
Invoke the specified widget. This can only be done when ZLE is

@ -672,8 +672,9 @@ bin_zle_call(char *name, char **args, char *ops, char func)
static int
bin_zle_invalidate(char *name, char **args, char *ops, char func)
{
if (zleactive && !trashedzle) {
trashzle();
if (zleactive) {
if (!trashedzle)
trashzle();
return 0;
} else
return 1;