diff --git a/pdcurses/getyx.c b/pdcurses/getyx.c index c50e6cb7..ef694c72 100644 --- a/pdcurses/getyx.c +++ b/pdcurses/getyx.c @@ -137,9 +137,14 @@ int setsyx(int y, int x) curscr->_leaveit = TRUE; return OK; } + else if (y == -1 || x == -1) + { + return OK; + } else { curscr->_leaveit = FALSE; - return wmove(curscr, y, x); + wmove(curscr, y, x); + return OK; } }