https://bugs.gentoo.org/932139 https://github.com/mbarbon/pMARS/commit/a39970c724591c3c8625819cab7ca298ae71e12d --- a/src/curdisp.c +++ b/src/curdisp.c @@ -428,18 +428,18 @@ agets5(str, maxchar, attr) str--; maxchar++; leaveok(curwin, TRUE); - if (ox = curwin->_curx) { + if (ox = getcurx(curwin)) { #if 0 #ifdef ATTRIBUTE - mvwaddch(curwin, curwin->_cury, --ox, ' ' | attr); + mvwaddch(curwin, getcury(curwin), --ox, ' ' | attr); #else - mvwaddch(curwin, curwin->_cury, --ox, ' '); + mvwaddch(curwin, getcury(curwin), --ox, ' '); #endif #endif /* 0 */ - mvwaddch(curwin, curwin->_cury, --ox, ' '); - wmove(curwin, curwin->_cury, ox); + mvwaddch(curwin, getcury(curwin), --ox, ' '); + wmove(curwin, getcury(curwin), ox); } else { - oy = curwin->_cury - 1; + oy = getcury(curwin) - 1; #if 0 #ifdef ATTRIBUTE mvwaddch(curwin, oy, COLS - 1, ' ' | attr); @@ -470,12 +470,12 @@ agets5(str, maxchar, attr) if (ox--) #if 0 #ifdef ATTRIBUTE - mvwaddch(curwin, curwin->_cury, ox, ' ' | attr); + mvwaddch(curwin, getcury(curwin), ox, ' ' | attr); #else - mvwaddch(curwin, curwin->_cury, ox, ' '); + mvwaddch(curwin, getcury(curwin), ox, ' '); #endif #endif /* 0 */ - mvwaddch(curwin, curwin->_cury, ox, ' '); + mvwaddch(curwin, getcury(curwin), ox, ' '); else #if 0 #ifdef ATTRIBUTE