about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-11-08 12:04:02 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-11-08 12:04:02 +0000
commit18c57f0aeefa24e7d562feef8e3a00b06d849b9f (patch)
tree2c2f15d32487135a1b90723172a06a84457d344c /Src
parenta563cd895832c198a06818ebd975a19ff3532a85 (diff)
downloadzsh-18c57f0aeefa24e7d562feef8e3a00b06d849b9f.tar.gz
zsh-18c57f0aeefa24e7d562feef8e3a00b06d849b9f.tar.xz
zsh-18c57f0aeefa24e7d562feef8e3a00b06d849b9f.zip
typo in parameter setting 24073
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/curses.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c
index 64ba356a1..a7bb334d8 100644
--- a/Src/Modules/curses.c
+++ b/Src/Modules/curses.c
@@ -1099,10 +1099,10 @@ zccmd_input(const char *nam, char **args)
 		    /*
 		     * This may happen if the mouse wasn't in
 		     * the window, so set the array to empty
-		     * but return success.
+		     * but return success unless the set itself
+		     * failed.
 		     */
-		    setaparam(args[3], mkarray(NULL));
-		    return 0;
+		    return !setaparam(args[3], mkarray(NULL));
 		}
 		margs = newlinklist();
 		sprintf(digits, "%d", (int)mevent.id);
@@ -1173,7 +1173,7 @@ zccmd_input(const char *nam, char **args)
     }
 #ifdef NCURSES_MOUSE_VERSION
     if (keypadnum != KEY_MOUSE && nargs >= 4)
-	setaparam(args[3], mkarray(NULL));
+	return !setaparam(args[3], mkarray(NULL));
 #endif
     return 0;
 }