Lines Matching full:vp

30 v_left(SCR *sp, VICMD *vp)  in v_left()  argument
38 if (vp->m_start.cno == 0) { in v_left()
44 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_left()
45 if (vp->m_start.cno > cnt) in v_left()
46 vp->m_stop.cno = vp->m_start.cno - cnt; in v_left()
48 vp->m_stop.cno = 0; in v_left()
55 if (ISMOTION(vp)) in v_left()
56 --vp->m_start.cno; in v_left()
57 vp->m_final = vp->m_stop; in v_left()
68 v_cfirst(SCR *sp, VICMD *vp) in v_cfirst() argument
80 if (ISMOTION(vp)) in v_cfirst()
81 F_SET(vp, VM_LMODE); in v_cfirst()
87 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_cfirst()
89 --vp->count; in v_cfirst()
90 return (v_down(sp, vp)); in v_cfirst()
99 vp->m_stop.cno = 0; in v_cfirst()
100 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_cfirst()
109 if (vp->m_stop.lno == 1 && in v_cfirst()
110 vp->m_stop.cno == 0 && ISCMD(vp->rkp, 'd')) { in v_cfirst()
123 vp->m_final = in v_cfirst()
124 ISMOTION(vp) && ISCMD(vp->rkp, 'y') ? vp->m_start : vp->m_stop; in v_cfirst()
135 v_first(SCR *sp, VICMD *vp) in v_first() argument
150 vp->m_stop.cno = 0; in v_first()
151 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_first()
160 if (ISMOTION(vp) && vp->m_start.cno == vp->m_stop.cno) { in v_first()
174 if (vp->m_start.cno < vp->m_stop.cno) in v_first()
175 if (ISMOTION(vp)) { in v_first()
176 --vp->m_stop.cno; in v_first()
177 vp->m_final = vp->m_start; in v_first()
179 vp->m_final = vp->m_stop; in v_first()
181 if (ISMOTION(vp)) in v_first()
182 --vp->m_start.cno; in v_first()
183 vp->m_final = vp->m_stop; in v_first()
197 v_ncol(SCR *sp, VICMD *vp) in v_ncol() argument
199 if (F_ISSET(vp, VC_C1SET) && vp->count > 1) { in v_ncol()
200 --vp->count; in v_ncol()
201 vp->m_stop.cno = in v_ncol()
202 vs_colpos(sp, vp->m_start.lno, (size_t)vp->count); in v_ncol()
209 if (ISMOTION(vp) && vp->m_stop.cno == vp->m_start.cno) { in v_ncol()
220 if (ISMOTION(vp) && vp->m_start.cno == 0) { in v_ncol()
224 vp->m_stop.cno = 0; in v_ncol()
236 if (vp->m_start.cno < vp->m_stop.cno) in v_ncol()
237 if (ISMOTION(vp)) { in v_ncol()
238 --vp->m_stop.cno; in v_ncol()
239 vp->m_final = vp->m_start; in v_ncol()
241 vp->m_final = vp->m_stop; in v_ncol()
243 if (ISMOTION(vp)) in v_ncol()
244 --vp->m_start.cno; in v_ncol()
245 vp->m_final = vp->m_stop; in v_ncol()
257 v_zero(SCR *sp, VICMD *vp) in v_zero() argument
264 if (ISMOTION(vp) && vp->m_start.cno == 0) { in v_zero()
274 vp->m_stop.cno = 0; in v_zero()
275 if (ISMOTION(vp)) in v_zero()
276 --vp->m_start.cno; in v_zero()
277 vp->m_final = vp->m_stop; in v_zero()