Lines Matching full:vp
61 v_sectionf(SCR *sp, VICMD *vp) in v_sectionf() argument
80 if (ISMOTION(vp)) { in v_sectionf()
81 if (vp->m_start.cno == 0) in v_sectionf()
82 F_SET(vp, VM_LMODE); in v_sectionf()
84 vp->m_stop = vp->m_start; in v_sectionf()
85 vp->m_stop.cno = 0; in v_sectionf()
86 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_sectionf()
88 if (vp->m_start.cno <= vp->m_stop.cno) in v_sectionf()
89 F_SET(vp, VM_LMODE); in v_sectionf()
93 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sectionf()
94 for (lno = vp->m_start.lno; !db_get(sp, ++lno, 0, &p, &len);) { in v_sectionf()
97 if (p[0] == '{' || (ISMOTION(vp) && p[0] == '}')) { in v_sectionf()
129 adjust1: if (ISMOTION(vp)) in v_sectionf()
132 adjust2: vp->m_stop.lno = lno; in v_sectionf()
133 vp->m_stop.cno = 0; in v_sectionf()
139 if (vp->m_start.lno == lno - 1) { in v_sectionf()
146 vp->m_stop.lno = lno; in v_sectionf()
147 vp->m_stop.cno = len ? len - 1 : 0; in v_sectionf()
153 ret2: if (ISMOTION(vp)) { in v_sectionf()
154 vp->m_final = vp->m_start; in v_sectionf()
155 if (F_ISSET(vp, VM_LMODE)) in v_sectionf()
156 vp->m_final.cno = 0; in v_sectionf()
158 vp->m_final = vp->m_stop; in v_sectionf()
169 v_sectionb(SCR *sp, VICMD *vp) in v_sectionb() argument
177 if (vp->m_start.lno <= 1) { in v_sectionb()
186 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sectionb()
187 for (lno = vp->m_start.lno; !db_get(sp, --lno, 0, &p, &len);) { in v_sectionb()
213 adjust1: vp->m_stop.lno = lno; in v_sectionb()
214 vp->m_stop.cno = 0; in v_sectionb()
223 vp->m_stop.lno = 1; in v_sectionb()
224 vp->m_stop.cno = 0; in v_sectionb()
236 ret1: if (vp->m_start.cno == 0) { in v_sectionb()
237 F_CLR(vp, VM_RCM_MASK); in v_sectionb()
238 F_SET(vp, VM_RCM_SETFNB); in v_sectionb()
240 --vp->m_start.lno; in v_sectionb()
241 F_SET(vp, VM_LMODE); in v_sectionb()
243 --vp->m_start.cno; in v_sectionb()
245 vp->m_final = vp->m_stop; in v_sectionb()