work around a bug in NetBSD libcurses

http://gnats.netbsd.org/56664 reported.
This commit is contained in:
Kartik K. Agaram 2022-01-24 20:43:30 -08:00
parent 6a33284b07
commit 6d53235dfc
1 changed files with 1 additions and 0 deletions

View File

@ -1302,6 +1302,7 @@ Wgetch(lua_State *L)
render_trusted_teliva_data(L); /* Apps can draw what they want on screen,
* but Teliva's UI is always visible when
* asking the user to make a decision. */
if (x > COLS-2) x = COLS-2; if (y > LINES-1) y = LINES-1; /* http://gnats.netbsd.org/56664 */
mvaddstr(y, x, "");
int c = wgetch(w);