about summary refs log tree commit diff
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
parenta563cd895832c198a06818ebd975a19ff3532a85 (diff)
downloadzsh-18c57f0aeefa24e7d562feef8e3a00b06d849b9f.tar.gz
zsh-18c57f0aeefa24e7d562feef8e3a00b06d849b9f.tar.xz
zsh-18c57f0aeefa24e7d562feef8e3a00b06d849b9f.zip
typo in parameter setting 24073
-rw-r--r--ChangeLog5
-rw-r--r--Src/Modules/curses.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index db32292bd..e35129f51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-08  Peter Stephenson  <pws@csr.com>
+
+	* unposted: Src/curses.c: typo in parameter setting in
+	24073.
+
 2007-11-07  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 24073 (plus tweak to allow "zcurses mouse" with no additional
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;
 }