Lines Matching full:vp
68 v_paragraphf(SCR *sp, VICMD *vp) in v_paragraphf() argument
91 if (ISMOTION(vp)) { in v_paragraphf()
92 if (vp->m_start.cno == 0) in v_paragraphf()
93 F_SET(vp, VM_LMODE); in v_paragraphf()
95 vp->m_stop = vp->m_start; in v_paragraphf()
96 vp->m_stop.cno = 0; in v_paragraphf()
97 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_paragraphf()
99 if (vp->m_start.cno <= vp->m_stop.cno) in v_paragraphf()
100 F_SET(vp, VM_LMODE); in v_paragraphf()
105 lno = vp->m_start.lno; in v_paragraphf()
113 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_paragraphf()
147 found: if (ISMOTION(vp)) { in v_paragraphf()
148 vp->m_stop.lno = lastlno; in v_paragraphf()
149 vp->m_stop.cno = lastlen ? lastlen - 1 : 0; in v_paragraphf()
150 vp->m_final = vp->m_start; in v_paragraphf()
152 vp->m_stop.lno = lno; in v_paragraphf()
153 vp->m_stop.cno = 0; in v_paragraphf()
154 vp->m_final = vp->m_stop; in v_paragraphf()
170 eof: if (vp->m_start.lno == lno || vp->m_start.lno == lno - 1) { in v_paragraphf()
171 if (db_eget(sp, vp->m_start.lno, &p, &len, &isempty)) { in v_paragraphf()
174 vp->m_start.cno = 0; in v_paragraphf()
177 if (vp->m_start.cno == (len ? len - 1 : 0)) { in v_paragraphf()
190 if (ISMOTION(vp) && ISCMD(vp->rkp, 'd')) { in v_paragraphf()
191 F_CLR(vp, VM_RCM_MASK); in v_paragraphf()
192 F_SET(vp, VM_RCM_SETFNB); in v_paragraphf()
194 vp->m_stop.lno = lno - 1; in v_paragraphf()
195 vp->m_stop.cno = len ? len - 1 : 0; in v_paragraphf()
196 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_paragraphf()
207 v_paragraphb(SCR *sp, VICMD *vp) in v_paragraphb() argument
233 lno = vp->m_start.lno; in v_paragraphb()
235 if (ISMOTION(vp)) { in v_paragraphb()
236 if (vp->m_start.cno == 0) { in v_paragraphb()
237 if (vp->m_start.lno == 1) { in v_paragraphb()
238 v_sof(sp, &vp->m_start); in v_paragraphb()
241 --vp->m_start.lno; in v_paragraphb()
242 F_SET(vp, VM_LMODE); in v_paragraphb()
244 --vp->m_start.cno; in v_paragraphb()
247 if (vp->m_start.lno <= 1) in v_paragraphb()
258 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_paragraphb()
271 if (vp->m_start.cno > 0) in v_paragraphb()
297 found: vp->m_stop.lno = lno; in v_paragraphb()
298 vp->m_stop.cno = 0; in v_paragraphb()
304 vp->m_final = vp->m_stop; in v_paragraphb()