mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 08:30:54 +02:00
23957: minor fixes.
This commit is contained in:
parent
48139337d3
commit
951c8cca0f
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2007-10-15 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* 23957: Doc/Zsh/mod_curses.yo, Src/Modules/curses.c: minor fixes.
|
||||||
|
|
||||||
2007-10-14 Clint Adams <clint@zsh.org>
|
2007-10-14 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* unposted: Doc/Zsh/.distfiles, Src/Modules/.distfiles: update for
|
* unposted: Doc/Zsh/.distfiles, Src/Modules/.distfiles: update for
|
||||||
|
|
|
@ -26,7 +26,8 @@ The tt(-r) command will refresh window var(targetwin); this is necessary to
|
||||||
make any pending changes (such as characters you have prepared for output
|
make any pending changes (such as characters you have prepared for output
|
||||||
with tt(-c)) visible on the screen.
|
with tt(-c)) visible on the screen.
|
||||||
|
|
||||||
tt(-m) moves var(targetwin) to new coordinates var(new_y) and var(new_x).
|
tt(-m) moves the cursor position in var(targetwin) to new coordinates
|
||||||
|
var(new_y) and var(new_x).
|
||||||
|
|
||||||
Outputting characters and strings are achieved by tt(-c) and tt(-s)
|
Outputting characters and strings are achieved by tt(-c) and tt(-s)
|
||||||
respectively.
|
respectively.
|
||||||
|
|
|
@ -78,7 +78,7 @@ zcurses_validate_window(char *win, int criteria)
|
||||||
|
|
||||||
target = (unsigned)atoi(win);
|
target = (unsigned)atoi(win);
|
||||||
|
|
||||||
if (target > ZCURSES_MAX_WINDOWS) {
|
if (target > ZCURSES_MAX_WINDOWS || target < 1) {
|
||||||
zc_errno = ZCURSES_ERANGE;
|
zc_errno = ZCURSES_ERANGE;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue