Lines Matching refs:cursor
71 el->el_line.cursor = el->el_line.buffer;
78 el->el_chared.c_vcmd.pos = el->el_line.cursor;
84 * Paste previous deletion before or after the cursor
100 if (!c && el->el_line.cursor < el->el_line.lastchar)
101 el->el_line.cursor++;
104 if (el->el_line.cursor + len > el->el_line.lastchar)
106 (void) memcpy(el->el_line.cursor, k->buf, len);
113 * Vi paste previous deletion to the right of the cursor
126 * Vi paste previous deletion to the left of the cursor
147 if (el->el_line.cursor == el->el_line.buffer)
150 el->el_line.cursor = cv_prev_word(el->el_line.cursor,
172 if (el->el_line.cursor == el->el_line.buffer)
175 el->el_line.cursor = cv_prev_word(el->el_line.cursor,
197 if (el->el_line.cursor >= el->el_line.lastchar - 1)
200 el->el_line.cursor = cv_next_word(el, el->el_line.cursor,
221 if (el->el_line.cursor >= el->el_line.lastchar - 1)
224 el->el_line.cursor = cv_next_word(el, el->el_line.cursor,
237 * Vi change case of character under the cursor and advance one character
245 if (el->el_line.cursor >= el->el_line.lastchar)
250 c = *(unsigned char *)el->el_line.cursor;
252 *el->el_line.cursor = tolower(c);
254 *el->el_line.cursor = toupper(c);
256 if (++el->el_line.cursor >= el->el_line.lastchar) {
257 el->el_line.cursor--;
293 el->el_line.cursor = el->el_line.buffer;
301 * Vi replace character under the cursor with the next character typed
309 if (el->el_line.cursor >= el->el_line.lastchar)
336 * Vi replace character under the cursor and enter insert mode
378 cv_yank(el, el->el_line.cursor,
379 (int)(el->el_line.lastchar - el->el_line.cursor));
402 * Vi enter insert mode after the cursor
412 if (el->el_line.cursor < el->el_line.lastchar) {
413 el->el_line.cursor++;
414 if (el->el_line.cursor > el->el_line.lastchar)
415 el->el_line.cursor = el->el_line.lastchar;
436 el->el_line.cursor = el->el_line.lastchar;
464 if (el->el_line.cursor == el->el_line.lastchar)
467 el->el_line.cursor = cv__endword(el->el_line.cursor,
471 el->el_line.cursor++;
488 if (el->el_line.cursor == el->el_line.lastchar)
491 el->el_line.cursor = cv__endword(el->el_line.cursor,
495 el->el_line.cursor++;
519 el->el_chared.c_undo.cursor =
520 (int)(el->el_line.cursor - el->el_line.buffer);
523 el->el_line.cursor = un.buf + un.cursor;
548 if (el->el_line.cursor > el->el_line.buffer)
549 el->el_line.cursor--;
566 el->el_line.cursor = el->el_line.buffer;
584 if (el->el_line.cursor <= el->el_line.buffer)
588 el->el_line.cursor--;
602 if (el->el_line.cursor == el->el_line.lastchar) {
603 if (el->el_line.cursor == el->el_line.buffer) {
631 * Vi cut from beginning of line to cursor
642 while (cp < el->el_line.cursor)
645 c_delbefore(el, (int)(el->el_line.cursor - el->el_line.buffer));
646 el->el_line.cursor = el->el_line.buffer; /* zap! */
806 i = strcspn(el->el_line.cursor, match_chars);
807 o_ch = el->el_line.cursor[i];
815 for (cp = &el->el_line.cursor[i]; count; ) {
825 el->el_line.cursor = cp;
828 /* NB posix says char under cursor should NOT be deleted
831 el->el_line.cursor++;
861 el->el_line.cursor = el->el_line.buffer;
875 cv_yank(el, el->el_line.cursor,
876 (int)(el->el_line.lastchar - el->el_line.cursor));
901 el->el_line.cursor = el->el_line.buffer;
903 *el->el_line.cursor = '#';
1031 el->el_line.cursor = cp;
1078 if (el->el_line.cursor < el->el_line.lastchar)
1079 el->el_line.cursor++;
1081 cp = el->el_line.cursor;
1087 el->el_line.cursor = cp;
1108 el->el_chared.c_vcmd.pos = el->el_line.cursor;