mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-20 23:41:27 +02:00
52477: fix "zcurses mouse delay ..." and one other typo
This commit is contained in:
parent
c72b4a74ef
commit
0459cc2eaf
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
2024-01-24 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 52477: Src/Modules/curses.c: fix "zcurses mouse delay ..."
|
||||
|
||||
* 52473: Doc/Zsh/mod_zutil.yo, Src/Modules/zutil.c: zstyle -q
|
||||
|
||||
* 52468: Src/builtin.c, Src/utils.c: save and restore state of
|
||||
|
|
|
@ -1302,7 +1302,7 @@ zccmd_mouse(const char *nam, char **args)
|
|||
zlong delay;
|
||||
|
||||
if (!*++args ||
|
||||
((delay = zstrtol(*args, &eptr, 10)), eptr != NULL)) {
|
||||
((delay = zstrtol(*args, &eptr, 10)), *eptr != '\0')) {
|
||||
zwarnnam(nam, "mouse delay requires an integer argument");
|
||||
return 1;
|
||||
}
|
||||
|
@ -1326,7 +1326,7 @@ zccmd_mouse(const char *nam, char **args)
|
|||
if (old_mask != zcurses_mouse_mask)
|
||||
zcurses_flags |= ZCF_MOUSE_MASK_CHANGED;
|
||||
} else {
|
||||
zwarnnam(nam, "unrecognised mouse command: %s", *arg);
|
||||
zwarnnam(nam, "unrecognised mouse command: %s", arg);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue