Lines Matching full:vp
34 v_mark(SCR *sp, VICMD *vp) in v_mark() argument
36 return (mark_set(sp, vp->character, &vp->m_start, 1)); in v_mark()
55 v_bmark(SCR *sp, VICMD *vp) in v_bmark() argument
57 return (mark(sp, vp, 1, BQMARK)); in v_bmark()
69 v_fmark(SCR *sp, VICMD *vp) in v_fmark() argument
71 return (mark(sp, vp, 1, FQMARK)); in v_fmark()
81 v_emark(SCR *sp, VICMD *vp) in v_emark() argument
85 smp = HMAP + vp->ev.e_lno; in v_emark()
90 vp->m_stop.lno = smp->lno; in v_emark()
91 vp->m_stop.cno = in v_emark()
92 vs_colpos(sp, smp->lno, vp->ev.e_cno + (smp->soff - 1) * sp->cols); in v_emark()
93 return (mark(sp, vp, 0, BQMARK)); in v_emark()
101 mark(SCR *sp, VICMD *vp, int getmark, enum which cmd) in mark() argument
107 if (getmark && mark_get(sp, vp->character, &vp->m_stop, M_BERR)) in mark()
119 if (db_get(sp, vp->m_stop.lno, DBG_FATAL, NULL, &len)) in mark()
121 if (vp->m_stop.cno < len || in mark()
122 (vp->m_stop.cno == len && len == 0)) in mark()
125 if (ISMOTION(vp)) in mark()
126 F_SET(vp, VM_LMODE); in mark()
130 vp->m_stop.cno = 0; in mark()
131 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in mark()
139 if (!ISMOTION(vp)) { in mark()
140 vp->m_final = vp->m_stop; in mark()
149 vp->m_stop.lno == vp->m_start.lno && in mark()
150 vp->m_stop.cno == vp->m_start.cno) { in mark()
162 if (vp->m_start.lno > vp->m_stop.lno || in mark()
163 (vp->m_start.lno == vp->m_stop.lno && in mark()
164 vp->m_start.cno > vp->m_stop.cno)) { in mark()
165 m = vp->m_start; in mark()
166 vp->m_start = vp->m_stop; in mark()
167 vp->m_stop = m; in mark()
195 vp->m_final = vp->m_start; in mark()
214 if (vp->m_start.lno < vp->m_stop.lno && vp->m_stop.cno == 0) { in mark()
215 if (db_get(sp, --vp->m_stop.lno, DBG_FATAL, NULL, &len)) in mark()
217 vp->m_stop.cno = len ? len - 1 : 0; in mark()
219 if (nonblank(sp, vp->m_start.lno, &len)) in mark()
221 if (vp->m_start.cno <= len) in mark()
222 F_SET(vp, VM_LMODE); in mark()
224 --vp->m_stop.cno; in mark()