diff --git a/demos/tui.c b/demos/tui.c index d25e2025..6961aa48 100644 --- a/demos/tui.c +++ b/demos/tui.c @@ -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);