mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 07:10:58 +02:00
typo in parameter setting 24073
This commit is contained in:
parent
a563cd8958
commit
18c57f0aee
2 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue