Lines Matching full:vp
30 v_xchar(SCR *sp, VICMD *vp) in v_xchar() argument
35 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_xchar()
54 if (F_ISSET(vp, VC_C1SET)) in v_xchar()
55 vp->m_stop.cno += vp->count - 1; in v_xchar()
56 if (vp->m_stop.cno >= len - 1) { in v_xchar()
57 vp->m_stop.cno = len - 1; in v_xchar()
58 vp->m_final.cno = vp->m_start.cno ? vp->m_start.cno - 1 : 0; in v_xchar()
60 vp->m_final.cno = vp->m_start.cno; in v_xchar()
63 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, in v_xchar()
64 &vp->m_start, &vp->m_stop, 0)) in v_xchar()
66 return (del(sp, &vp->m_start, &vp->m_stop, 0)); in v_xchar()
77 v_Xchar(SCR *sp, VICMD *vp) in v_Xchar() argument
81 if (vp->m_start.cno == 0) { in v_Xchar()
86 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_Xchar()
87 if (cnt >= vp->m_start.cno) in v_Xchar()
88 vp->m_start.cno = 0; in v_Xchar()
90 vp->m_start.cno -= cnt; in v_Xchar()
91 --vp->m_stop.cno; in v_Xchar()
92 vp->m_final.cno = vp->m_start.cno; in v_Xchar()
95 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, in v_Xchar()
96 &vp->m_start, &vp->m_stop, 0)) in v_Xchar()
98 return (del(sp, &vp->m_start, &vp->m_stop, 0)); in v_Xchar()