about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
 }