Lines Matching refs:win
49 wclrtoeol(WINDOW *win) in wclrtoeol() argument
51 int y = win->_cury; in wclrtoeol()
52 int x = win->_curx; in wclrtoeol()
53 int maxx = win->_maxx; in wclrtoeol()
57 if (win != curscr) { in wclrtoeol()
58 win->_nbyte = -1; in wclrtoeol()
60 if (ISMBIT(win->_y[y][x])) { in wclrtoeol()
61 win->_insmode = TRUE; in wclrtoeol()
62 if (_mbvalid(win) == ERR) in wclrtoeol()
64 x = win->_curx; in wclrtoeol()
66 if (ISMBIT(win->_y[y][maxx - 1])) { in wclrtoeol()
68 if (!ISCBIT(win->_y[y][cx])) in wclrtoeol()
70 wc = RBYTE(win->_y[y][cx]); in wclrtoeol()
77 memSset(&win->_y[y][x], win->_bkgd, maxx - x); in wclrtoeol()
78 maxx = win->_maxx; in wclrtoeol()
82 (*_y16update)(win, 1, maxx - x, y, x); in wclrtoeol()
86 if (win == curscr) { in wclrtoeol()
132 "lastch = %d, next firstch %d\n", y, win->_begx, in wclrtoeol()
133 win->_firstch[y], win->_lastch[y], win->_firstch[y+1]); in wclrtoeol()
136 if (win->_firstch[y] > x) in wclrtoeol()
138 win->_firstch[y] = (short) x; in wclrtoeol()
139 win->_lastch[y] = maxx - 1; in wclrtoeol()
140 win->_flags |= _WINCHANGED; in wclrtoeol()
142 if (win->_sync) in wclrtoeol()
143 wsyncup(win); in wclrtoeol()
145 return (win->_immed ? wrefresh(win) : OK); in wclrtoeol()