Home | History | Annotate | Download | only in stage2

Lines Matching refs:lpos

311   int xpos, lpos, c, section;
337 lpos -= count;
341 if (section == 1 && plen + lpos < CMDLINE_WIDTH)
364 lpos += count;
377 for (i = lpos - count; i < lpos; i++)
391 only LEN characters from LPOS. */
401 if (lpos + plen < CMDLINE_WIDTH)
404 section = ((lpos + plen - CMDLINE_WIDTH)
438 xpos = lpos + plen;
450 xpos = lpos + 1 - start;
511 if (lpos == llen)
512 grub_memmove (buf + lpos, str, l + 1);
515 grub_memmove (buf + lpos + l, buf + lpos, llen - lpos + 1);
516 grub_memmove (buf + lpos, str, l);
520 lpos += l;
523 else if (xpos + l + llen - lpos > CMDLINE_WIDTH)
526 cl_refresh (0, l + llen - lpos);
533 grub_memmove (buf + lpos, buf + lpos + count, llen - count + 1);
536 if (xpos + llen + count - lpos > CMDLINE_WIDTH)
539 cl_refresh (0, llen + count - lpos);
554 lpos = llen;
582 is_filename = (lpos > pos);
596 for (i = lpos; i > 0 && buf[i - 1] != ' '; i--)
605 grub_memmove (completion_buffer, buf + i, lpos - i);
606 completion_buffer[lpos - i] = 0;
613 cl_insert (completion_buffer + lpos - i);
634 cl_backward (lpos);
637 cl_forward (llen - lpos);
640 if (lpos < llen)
644 if (lpos > 0)
648 if (lpos == 0)
651 grub_memmove (kill_buf, buf, lpos);
652 kill_buf[lpos] = 0;
656 int count = lpos;
658 cl_backward (lpos);
663 if (lpos == llen)
666 grub_memmove (kill_buf, buf + lpos, llen - lpos + 1);
667 cl_delete (llen - lpos);
693 lpos = llen;
716 lpos = llen;
731 if (lpos == llen)
739 if (lpos > 0)
760 lpos = 0;
762 while (buf[lpos] == ' ')
763 lpos++;
766 grub_memmove (cmdline, buf + lpos, llen - lpos + 1);
770 if (readline && lpos < llen)