Lines Matching full:vp
30 v_right(SCR *sp, VICMD *vp) in v_right() argument
35 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_right()
56 vp->m_stop.cno = vp->m_start.cno + in v_right()
57 (F_ISSET(vp, VC_C1SET) ? vp->count : 1); in v_right()
58 if (vp->m_start.cno == len - 1 && !ISMOTION(vp)) { in v_right()
62 if (vp->m_stop.cno >= len) { in v_right()
63 vp->m_stop.cno = len - 1; in v_right()
64 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_right()
65 } else if (ISMOTION(vp)) { in v_right()
66 --vp->m_stop.cno; in v_right()
67 vp->m_final = vp->m_start; in v_right()
69 vp->m_final = vp->m_stop; in v_right()
80 v_dollar(SCR *sp, VICMD *vp) in v_dollar() argument
89 if ((F_ISSET(vp, VC_C1SET) ? vp->count : 1) != 1) { in v_dollar()
96 vp->m_stop.cno = 0; in v_dollar()
97 if (nonblank(sp, vp->m_start.lno, &vp->m_stop.cno)) in v_dollar()
99 if (ISMOTION(vp) && vp->m_start.cno <= vp->m_stop.cno) in v_dollar()
100 F_SET(vp, VM_LMODE); in v_dollar()
102 --vp->count; in v_dollar()
103 if (v_down(sp, vp)) in v_dollar()
116 if (db_eget(sp, vp->m_stop.lno, NULL, &len, &isempty)) { in v_dollar()
123 if (ISMOTION(vp) && !ISCMD(vp->rkp, 'c')) { in v_dollar()
134 vp->m_stop.cno = len ? len - 1 : 0; in v_dollar()
135 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_dollar()