1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
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
|