Lines Matching refs:cursor
83 || el->el_line.cursor >= el->el_line.lastchar)
86 *el->el_line.cursor++ = c;
92 while (count-- && el->el_line.cursor < el->el_line.lastchar)
93 *el->el_line.cursor++ = c;
105 * Delete from beginning of current word to cursor
114 if (el->el_line.cursor == el->el_line.buffer)
117 cp = c__prev_word(el->el_line.cursor, el->el_line.buffer,
120 for (p = cp, kp = el->el_chared.c_kill.buf; p < el->el_line.cursor; p++)
124 c_delbefore(el, (int)(el->el_line.cursor - cp));/* delete before dot */
125 el->el_line.cursor = cp;
126 if (el->el_line.cursor < el->el_line.buffer)
127 el->el_line.cursor = el->el_line.buffer; /* bounds check */
133 * Delete character under cursor
144 EL.buffer, EL.buffer, EL.cursor, EL.cursor, EL.lastchar,
147 if (el->el_line.cursor == el->el_line.lastchar) {
150 if (el->el_line.cursor == el->el_line.buffer) {
161 el->el_line.cursor--;
171 el->el_line.cursor >= el->el_line.lastchar &&
172 el->el_line.cursor > el->el_line.buffer)
174 el->el_line.cursor = el->el_line.lastchar - 1;
189 cp = el->el_line.cursor;
195 el->el_line.lastchar = el->el_line.cursor;
201 * Move cursor to the end of line
209 el->el_line.cursor = el->el_line.lastchar;
221 * Move cursor to the beginning of line
229 el->el_line.cursor = el->el_line.buffer;
233 while (isspace((unsigned char) *el->el_line.cursor))
234 el->el_line.cursor++;
245 * Exchange the character to the left of the cursor with the one under it
252 if (el->el_line.cursor < el->el_line.lastchar) {
256 el->el_line.cursor++;
258 if (el->el_line.cursor > &el->el_line.buffer[1]) {
260 c = el->el_line.cursor[-2];
261 el->el_line.cursor[-2] = el->el_line.cursor[-1];
262 el->el_line.cursor[-1] = c;
279 if (el->el_line.cursor >= lim ||
280 (el->el_line.cursor == lim - 1 &&
285 el->el_line.cursor += el->el_state.argument;
286 if (el->el_line.cursor > lim)
287 el->el_line.cursor = lim;
307 if (el->el_line.cursor == el->el_line.buffer)
310 el->el_line.cursor = c__prev_word(el->el_line.cursor,
333 if (el->el_line.cursor > el->el_line.buffer) {
334 el->el_line.cursor -= el->el_state.argument;
335 if (el->el_line.cursor < el->el_line.buffer)
336 el->el_line.cursor = el->el_line.buffer;
553 * Delete the character to the left of the cursor
561 if (el->el_line.cursor <= el->el_line.buffer)
565 el->el_line.cursor -= el->el_state.argument;
566 if (el->el_line.cursor < el->el_line.buffer)
567 el->el_line.cursor = el->el_line.buffer;
830 if (*(ptr = el->el_line.cursor) == '\n')
854 el->el_line.cursor = ptr;
873 for (ptr = el->el_line.cursor; ptr < el->el_line.lastchar; ptr++)
888 el->el_line.cursor = ptr;