Lines Matching refs:eol
436 find_next_word(char *cursor, char *eol) in find_next_word() argument
438 while (cursor < eol && *cursor != ' ') in find_next_word()
440 while (cursor < eol && *cursor == ' ') in find_next_word()
501 char *p, *cursor, *eol, *tp, *cp; in read_line() local
521 for (cursor = eol = buf; ; ) { in read_line()
530 if (cursor > eol) in read_line()
531 eol = cursor; in read_line()
554 tp = find_next_word(cursor, eol); in read_line()
568 tp = find_next_word(cursor, eol); in read_line()
573 memmove(cursor, tp, eol - tp); in read_line()
574 redraw_line(env, buf, cursor, eol, buf, cursor, in read_line()
575 eol - len); in read_line()
576 eol -= len; in read_line()
585 if (cursor > eol) in read_line()
586 eol = cursor; in read_line()
596 if (cursor < eol) in read_line()
606 do_emit_str(env, cursor, eol - cursor); in read_line()
607 cursor = eol; in read_line()
617 do_save_buf(save_line, buf, eol - buf); in read_line()
627 redraw_line(env, buf, cursor, eol, in read_line()
631 eol = buf + len; in read_line()
638 redraw_line(env, buf, cursor, eol, p, p, p + len); in read_line()
641 eol = buf + len; in read_line()
649 if (cursor == eol) { in read_line()
662 len = min(len, MAX_LINE_SIZE - (eol - buf)); in read_line()
663 memcpy(eol, p, len); in read_line()
664 redraw_line(env, buf, cursor, eol, buf, cursor, in read_line()
665 eol + len); in read_line()
666 eol += len; in read_line()
669 do_save_buf(save_buf, cursor, eol - cursor); in read_line()
670 redraw_line(env, buf, cursor, eol, buf, cursor, in read_line()
672 eol = cursor; in read_line()
681 memmove(tp, cursor, eol - cursor); in read_line()
682 redraw_line(env, buf, cursor, eol, buf, cursor - len, in read_line()
683 eol - len); in read_line()
684 eol -= len; in read_line()
689 do_save_buf(save_buf, buf, eol - buf); in read_line()
690 redraw_line(env, buf, cursor, eol, buf, buf, buf); in read_line()
692 eol = buf; in read_line()
697 MAX_LINE_SIZE - (eol - buf)); in read_line()
700 memmove(cursor + len, cursor, eol - cursor); in read_line()
702 redraw_line(env, buf, cursor, eol, buf, cursor + len, in read_line()
703 eol + len); in read_line()
705 eol += len; in read_line()
719 redraw_line(env, buf, buf, buf, buf, cursor, eol); in read_line()
723 redraw_line(env, buf, cursor, eol, buf, cursor, eol); in read_line()
740 memmove(cursor - 1, cursor, eol - cursor); in read_line()
741 redraw_line(env, buf, cursor, eol, buf, cursor - 1, in read_line()
742 eol - 1); in read_line()
744 eol--; in read_line()
749 *eol = '\0'; in read_line()