Allow for opaque window structs. To Do: getattrs() isn't really

standard, either (although shared with ncurses).
This commit is contained in:
William McBrine
2018-01-02 00:46:23 -05:00
parent 4df86d3ae6
commit bb06fd24d6

View File

@@ -640,7 +640,7 @@ int weditstr(WINDOW *win, char *buf, int field)
getbegyx(win, begy, begx);
wedit = subwin(win, 1, field, begy + cury, begx + curx);
oldattr = wedit->_attrs;
oldattr = getattrs(wedit);
colorbox(wedit, EDITBOXCOLOR, 0);
keypad(wedit, TRUE);