1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-06 21:11:11 +02:00

typo in parameter setting 24073

This commit is contained in:
Peter Stephenson 2007-11-08 12:04:02 +00:00
parent a563cd8958
commit 18c57f0aee
2 changed files with 9 additions and 4 deletions

View file

@ -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> 2007-11-07 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 24073 (plus tweak to allow "zcurses mouse" with no additional * 24073 (plus tweak to allow "zcurses mouse" with no additional

View file

@ -1099,10 +1099,10 @@ zccmd_input(const char *nam, char **args)
/* /*
* This may happen if the mouse wasn't in * This may happen if the mouse wasn't in
* the window, so set the array to empty * 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 !setaparam(args[3], mkarray(NULL));
return 0;
} }
margs = newlinklist(); margs = newlinklist();
sprintf(digits, "%d", (int)mevent.id); sprintf(digits, "%d", (int)mevent.id);
@ -1173,7 +1173,7 @@ zccmd_input(const char *nam, char **args)
} }
#ifdef NCURSES_MOUSE_VERSION #ifdef NCURSES_MOUSE_VERSION
if (keypadnum != KEY_MOUSE && nargs >= 4) if (keypadnum != KEY_MOUSE && nargs >= 4)
setaparam(args[3], mkarray(NULL)); return !setaparam(args[3], mkarray(NULL));
#endif #endif
return 0; return 0;
} }