Lines Matching +full:end +full:- +full:point
1 /*-
24 * v_left -- [count]^H, [count]h
38 if (vp->m_start.cno == 0) { in v_left()
43 /* Find the end of the range. */ in v_left()
44 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_left()
45 if (vp->m_start.cno > cnt) in v_left()
46 vp->m_stop.cno = vp->m_start.cno - cnt; in v_left()
48 vp->m_stop.cno = 0; in v_left()
51 * All commands move to the end of the range. Motion commands in v_left()
52 * adjust the starting point to the character before the current in v_left()
56 --vp->m_start.cno; in v_left()
57 vp->m_final = vp->m_stop; in v_left()
62 * v_cfirst -- [count]_
63 * Move to the first non-blank character in a line.
84 * Historically a specified count makes _ move down count - 1 in v_cfirst()
87 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_cfirst()
89 --vp->count; in v_cfirst()
94 * Move to the first non-blank. in v_cfirst()
99 vp->m_stop.cno = 0; in v_cfirst()
100 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_cfirst()
109 if (vp->m_stop.lno == 1 && in v_cfirst()
110 vp->m_stop.cno == 0 && ISCMD(vp->rkp, 'd')) { in v_cfirst()
120 * Delete and non-motion commands move to the end of the range, in v_cfirst()
123 vp->m_final = in v_cfirst()
124 ISMOTION(vp) && ISCMD(vp->rkp, 'y') ? vp->m_start : vp->m_stop; in v_cfirst()
129 * v_first -- ^
130 * Move to the first non-blank character in this line.
145 * Move to the first non-blank. in v_first()
150 vp->m_stop.cno = 0; in v_first()
151 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_first()
157 * on the first non-blank in the line, but failed if used as a motion in v_first()
160 if (ISMOTION(vp) && vp->m_start.cno == vp->m_stop.cno) { in v_first()
166 * If moving right, non-motion commands move to the end of the range. in v_first()
168 * ending point to the character before the current ending charcter. in v_first()
170 * If moving left, all commands move to the end of the range. Motion in v_first()
171 * commands adjust the starting point to the character before the in v_first()
174 if (vp->m_start.cno < vp->m_stop.cno) in v_first()
176 --vp->m_stop.cno; in v_first()
177 vp->m_final = vp->m_start; in v_first()
179 vp->m_final = vp->m_stop; in v_first()
182 --vp->m_start.cno; in v_first()
183 vp->m_final = vp->m_stop; in v_first()
189 * v_ncol -- [count]|
199 if (F_ISSET(vp, VC_C1SET) && vp->count > 1) { in v_ncol()
200 --vp->count; in v_ncol()
201 vp->m_stop.cno = in v_ncol()
202 vs_colpos(sp, vp->m_start.lno, (size_t)vp->count); in v_ncol()
209 if (ISMOTION(vp) && vp->m_stop.cno == vp->m_start.cno) { in v_ncol()
220 if (ISMOTION(vp) && vp->m_start.cno == 0) { in v_ncol()
224 vp->m_stop.cno = 0; in v_ncol()
228 * If moving right, non-motion commands move to the end of the range. in v_ncol()
230 * ending point to the character before the current ending charcter. in v_ncol()
232 * If moving left, all commands move to the end of the range. Motion in v_ncol()
233 * commands adjust the starting point to the character before the in v_ncol()
236 if (vp->m_start.cno < vp->m_stop.cno) in v_ncol()
238 --vp->m_stop.cno; in v_ncol()
239 vp->m_final = vp->m_start; in v_ncol()
241 vp->m_final = vp->m_stop; in v_ncol()
244 --vp->m_start.cno; in v_ncol()
245 vp->m_final = vp->m_stop; in v_ncol()
251 * v_zero -- 0
264 if (ISMOTION(vp) && vp->m_start.cno == 0) { in v_zero()
270 * All commands move to the end of the range. Motion commands in v_zero()
271 * adjust the starting point to the character before the current in v_zero()
274 vp->m_stop.cno = 0; in v_zero()
276 --vp->m_start.cno; in v_zero()
277 vp->m_final = vp->m_stop; in v_zero()