about summary refs log tree commit diff
path: root/Src/Zle/zle_thingy.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2002-06-07 18:04:06 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2002-06-07 18:04:06 +0000
commitb673918c0ffd358a31353c86c1084286741f7306 (patch)
tree1cfd6c228b9221f5e9f549c3445194546225f186 /Src/Zle/zle_thingy.c
parent0e08b8c2e485c355acc4818c1b04a81bc7e150be (diff)
downloadzsh-b673918c0ffd358a31353c86c1084286741f7306.tar.gz
zsh-b673918c0ffd358a31353c86c1084286741f7306.tar.xz
zsh-b673918c0ffd358a31353c86c1084286741f7306.zip
17304: tweak to tweak the tweaked tweak for zle -I in 17301
Diffstat (limited to 'Src/Zle/zle_thingy.c')
-rw-r--r--Src/Zle/zle_thingy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index 26fc49906..2946ea209 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -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;