Lines Matching refs:cursor
67 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer);
104 if (el->el_line.cursor < el->el_line.lastchar) {
106 for (cp = el->el_line.lastchar; cp >= el->el_line.cursor; cp--)
114 * Delete num characters after the cursor
120 if (el->el_line.cursor + num > el->el_line.lastchar)
121 num = (int)(el->el_line.lastchar - el->el_line.cursor);
125 cv_yank(el, el->el_line.cursor, num);
131 for (cp = el->el_line.cursor; cp <= el->el_line.lastchar; cp++)
140 * Delete the character after the cursor, do not yank
147 for (cp = el->el_line.cursor; cp <= el->el_line.lastchar; cp++)
155 * Delete num characters before the cursor
161 if (el->el_line.cursor - num < el->el_line.buffer)
162 num = (int)(el->el_line.cursor - el->el_line.buffer);
166 cv_yank(el, el->el_line.cursor - num, num);
172 for (cp = el->el_line.cursor - num;
183 * Delete the character before the cursor, do not yank
190 for (cp = el->el_line.cursor - 1; cp <= el->el_line.lastchar; cp++)
378 size = (int)(el->el_line.cursor - el->el_chared.c_vcmd.pos);
381 el->el_line.cursor = el->el_chared.c_vcmd.pos;
384 cv_yank(el, el->el_line.cursor, size);
386 cv_yank(el, el->el_line.cursor + size, -size);
393 el->el_line.cursor += size;
457 el->el_line.cursor = el->el_line.buffer;
466 el->el_chared.c_undo.cursor = 0;
506 el->el_line.cursor = el->el_line.buffer;
510 el->el_chared.c_undo.cursor = 0;
573 el->el_line.cursor = newbuffer + (el->el_line.cursor - oldbuf);
665 *el->el_line.cursor++ = *s++;
671 * Delete num characters before the cursor
679 if (el->el_line.cursor < &el->el_line.buffer[n])
683 el->el_line.cursor -= n;
684 if (el->el_line.cursor < el->el_line.buffer)
685 el->el_line.cursor = el->el_line.buffer;
706 el->el_line.cursor = cp;
748 el->el_line.cursor = el->el_line.buffer;
754 * Return the current horizontal position of the cursor
764 if (el->el_line.cursor == el->el_line.buffer)
767 for (ptr = el->el_line.cursor - 1;
771 return (int)(el->el_line.cursor - ptr - 1);