mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
52477: fix "zcurses mouse delay ..." and one other typo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user