Lines Matching refs:cursor

60 static const char * cmd_reverse_search(int *cursor, clock_t *kbd_to,  in cmd_reverse_search()  argument
109 *cursor = p - last_good->command; in cmd_reverse_search()
129 int key, len, prev_len, cursor; in edit_cmdline() local
145 len = cursor = 0; in edit_cmdline()
193 dy = y - (cursor + strlen(input) + 1) / width; in edit_cmdline()
194 x = (cursor + strlen(input) + 1) % width; in edit_cmdline()
227 if (cursor) { in edit_cmdline()
228 memmove(cmdline + cursor - 1, cmdline + cursor, in edit_cmdline()
229 len - cursor + 1); in edit_cmdline()
231 cursor--; in edit_cmdline()
238 if (cursor < len) { in edit_cmdline()
239 memmove(cmdline + cursor, cmdline + cursor + 1, len - cursor); in edit_cmdline()
247 len = cursor = 0; in edit_cmdline()
254 if (cursor) { in edit_cmdline()
255 int prevcursor = cursor; in edit_cmdline()
257 while (cursor && my_isspace(cmdline[cursor - 1])) in edit_cmdline()
258 cursor--; in edit_cmdline()
260 while (cursor && !my_isspace(cmdline[cursor - 1])) in edit_cmdline()
261 cursor--; in edit_cmdline()
264 memmove(cmdline + cursor, cmdline + prevcursor, in edit_cmdline()
269 char *q = cmdline + cursor; in edit_cmdline()
275 len -= (prevcursor - cursor); in edit_cmdline()
282 if (cursor) { in edit_cmdline()
283 cursor--; in edit_cmdline()
290 if (cursor < len) { in edit_cmdline()
291 putchar(cmdline[cursor]); in edit_cmdline()
292 cursor++; in edit_cmdline()
303 if (cursor < len) { in edit_cmdline()
304 cmdline[len = cursor] = '\0'; in edit_cmdline()
311 if (cursor) { in edit_cmdline()
312 cursor = 0; in edit_cmdline()
319 if (cursor != len) { in edit_cmdline()
320 cursor = len; in edit_cmdline()
359 cursor = len = strlen(cmdline); in edit_cmdline()
381 cursor = len = strlen(cmdline); in edit_cmdline()
392 const char *p = cmd_reverse_search(&cursor, &kbd_to, &tto); in edit_cmdline()
398 cursor = len = 0; in edit_cmdline()
435 if (cursor == len) { in edit_cmdline()
439 cursor++; in edit_cmdline()
448 if (cursor > len) in edit_cmdline()
451 memmove(cmdline + cursor + 1, cmdline + cursor, in edit_cmdline()
452 len - cursor + 1); in edit_cmdline()
453 cmdline[cursor++] = key; in edit_cmdline()