Lines Matching refs:win
51 wclrtoeol(WINDOW *win) in wclrtoeol() argument
53 int y = win->_cury; in wclrtoeol()
54 int x = win->_curx; in wclrtoeol()
55 int maxx = win->_maxx; in wclrtoeol()
59 if (win != curscr) { in wclrtoeol()
60 win->_nbyte = -1; in wclrtoeol()
62 if (ISMBIT(win->_y[y][x])) { in wclrtoeol()
63 win->_insmode = TRUE; in wclrtoeol()
64 if (_mbvalid(win) == ERR) in wclrtoeol()
66 x = win->_curx; in wclrtoeol()
68 if (ISMBIT(win->_y[y][maxx - 1])) { in wclrtoeol()
70 if (!ISCBIT(win->_y[y][cx])) in wclrtoeol()
72 wc = RBYTE(win->_y[y][cx]); in wclrtoeol()
79 memSset(&win->_y[y][x], win->_bkgd, maxx - x); in wclrtoeol()
80 maxx = win->_maxx; in wclrtoeol()
84 (*_y16update)(win, 1, maxx - x, y, x); in wclrtoeol()
88 if (win == curscr) { in wclrtoeol()
134 "lastch = %d, next firstch %d\n", y, win->_begx, in wclrtoeol()
135 win->_firstch[y], win->_lastch[y], win->_firstch[y+1]); in wclrtoeol()
138 if (win->_firstch[y] > x) in wclrtoeol()
140 win->_firstch[y] = (short) x; in wclrtoeol()
141 win->_lastch[y] = maxx - 1; in wclrtoeol()
142 win->_flags |= _WINCHANGED; in wclrtoeol()
144 if (win->_sync) in wclrtoeol()
145 wsyncup(win); in wclrtoeol()
147 return (win->_immed ? wrefresh(win) : OK); in wclrtoeol()