• Home
  • Raw
  • Download

Lines Matching refs:linelen

3334 	ssize_t linelen;  member
3515 es->linelen = undo->linelen = 0; in x_vi()
3575 if (es->linelen == 0) { in x_vi()
3592 if (c == -1 || (ssize_t)len <= es->linelen) in x_vi()
3596 memmove(buf, es->cbuf, es->linelen); in x_vi()
3598 buf[es->linelen++] = '\n'; in x_vi()
3600 return (es->linelen); in x_vi()
3646 es->linelen = 0; in vi_hook()
3657 es->linelen = 0; in vi_hook()
3754 es->linelen -= char_len((unsigned char)locpat[srchlen]); in vi_hook()
3755 es->cursor = es->linelen; in vi_hook()
3764 es->linelen = 1; in vi_hook()
3781 es->linelen -= char_len((unsigned char)locpat[i]); in vi_hook()
3783 es->cursor = es->linelen; in vi_hook()
3792 if ((size_t)es->linelen + 2 > in vi_hook()
3795 es->cbuf[es->linelen++] = '^'; in vi_hook()
3796 es->cbuf[es->linelen++] = ch ^ '@'; in vi_hook()
3798 if (es->linelen >= es->cbufsize) in vi_hook()
3800 es->cbuf[es->linelen++] = ch; in vi_hook()
3802 es->cursor = es->linelen; in vi_hook()
3904 if (es->cursor >= undo->linelen) in vi_insert()
3905 es->linelen--; in vi_insert()
3914 es->linelen--; in vi_insert()
3916 es->linelen - es->cursor + 1); in vi_insert()
3925 es->linelen - es->cursor); in vi_insert()
3926 es->linelen -= es->cursor; in vi_insert()
3936 es->linelen - es->cursor); in vi_insert()
3937 es->linelen -= es->cursor - tcursor; in vi_insert()
4001 if (es->linelen >= es->cbufsize - 1) in vi_insert()
4006 es->linelen - es->cursor); in vi_insert()
4007 es->linelen++; in vi_insert()
4010 if (insert == REPLACE && es->cursor > es->linelen) in vi_insert()
4011 es->linelen++; in vi_insert()
4030 if (cur == es->linelen && cur != 0) in vi_cmd()
4039 memmove(undo->cbuf, es->cbuf, es->linelen); in vi_cmd()
4040 undo->linelen = es->linelen; in vi_cmd()
4096 if (es->linelen != 0) in vi_cmd()
4105 es->cursor = es->linelen; in vi_cmd()
4111 del_range(es->cursor, es->linelen); in vi_cmd()
4125 c2 = es->linelen; in vi_cmd()
4165 if (es->linelen != 0) in vi_cmd()
4190 del_range(es->cursor, es->linelen); in vi_cmd()
4195 yank_range(es->cursor, es->linelen); in vi_cmd()
4196 del_range(es->cursor, es->linelen); in vi_cmd()
4254 if (es->linelen == 0) in vi_cmd()
4263 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4278 if (es->linelen == 0) in vi_cmd()
4282 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4283 argcnt = es->linelen - es->cursor; in vi_cmd()
4290 if (es->linelen == 0) in vi_cmd()
4293 es->cbuf[es->linelen] = '\0'; in vi_cmd()
4308 es->linelen = strlen(es->cbuf); in vi_cmd()
4312 if (es->linelen == 0) in vi_cmd()
4316 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4317 argcnt = es->linelen - es->cursor; in vi_cmd()
4419 if (es->cursor != es->linelen) in vi_cmd()
4440 if (es->linelen == 0) in vi_cmd()
4453 if (es->cursor < es->linelen - 1) in vi_cmd()
4462 &es->linelen); in vi_cmd()
4502 if (insert == 0 && es->cursor != 0 && es->cursor >= es->linelen) in vi_cmd()
4528 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4531 if (sub && ncursor < es->linelen) in domove()
4536 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4539 if (sub && ncursor < es->linelen) in domove()
4576 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4578 if (es->linelen != 0) { in domove()
4580 if (ncursor > es->linelen) in domove()
4581 ncursor = es->linelen; in domove()
4586 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4592 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4603 while (ncursor < es->linelen - 1 && in domove()
4610 if (ncursor > es->linelen) in domove()
4611 ncursor = es->linelen; in domove()
4617 if (es->linelen != 0) in domove()
4618 ncursor = es->linelen; in domove()
4625 while (ncursor < es->linelen && in domove()
4628 if (ncursor == es->linelen) in domove()
4633 if (++ncursor >= es->linelen) in domove()
4710 memmove(holdbuf, es->cbuf, es->linelen); in save_cbuf()
4711 holdlen = es->linelen; in save_cbuf()
4719 es->linelen = holdlen; in restore_cbuf()
4731 memcpy(news->cbuf, old->cbuf, old->linelen); in save_edstate()
4733 news->linelen = old->linelen; in save_edstate()
4742 memcpy(news->cbuf, old->cbuf, old->linelen); in restore_edstate()
4743 news->linelen = old->linelen; in restore_edstate()
4773 if (es->cursor + len > es->linelen) in putbuf()
4774 es->linelen = es->cursor + len; in putbuf()
4776 if (es->linelen + len >= es->cbufsize) in putbuf()
4779 es->linelen - es->cursor); in putbuf()
4780 es->linelen += len; in putbuf()
4790 if (es->linelen != b) in del_range()
4791 memmove(&es->cbuf[a], &es->cbuf[b], es->linelen - b); in del_range()
4792 es->linelen -= b - a; in del_range()
4800 if (es->linelen == 0) in findch()
4806 if (++ncursor == es->linelen) in findch()
4829 while (ncursor < es->linelen && argcnt--) { in forwword()
4832 ncursor < es->linelen) in forwword()
4837 ncursor < es->linelen) in forwword()
4840 ncursor < es->linelen) in forwword()
4877 while (ncursor < es->linelen && argcnt--) { in endword()
4878 while (++ncursor < es->linelen - 1 && in endword()
4881 if (ncursor < es->linelen - 1) { in endword()
4883 while (++ncursor < es->linelen && in endword()
4887 while (++ncursor < es->linelen && in endword()
4903 while (ncursor < es->linelen && argcnt--) { in Forwword()
4905 ncursor < es->linelen) in Forwword()
4908 ncursor < es->linelen) in Forwword()
4936 while (ncursor < es->linelen - 1 && argcnt--) { in Endword()
4937 while (++ncursor < es->linelen - 1 && in Endword()
4940 if (ncursor < es->linelen - 1) { in Endword()
4941 while (++ncursor < es->linelen && in Endword()
4969 if ((es->linelen = strlen(hptr)) >= es->cbufsize) in grabhist()
4970 es->linelen = es->cbufsize - 1; in grabhist()
4971 memmove(es->cbuf, hptr, es->linelen); in grabhist()
5003 if ((es->linelen = strlen(hptr)) >= es->cbufsize) in grabsearch()
5004 es->linelen = es->cbufsize - 1; in grabsearch()
5005 memmove(es->cbuf, hptr, es->linelen); in grabsearch()
5099 while (col < winwidth && cur < es->linelen) { in display()
5215 nwords = x_cf_glob(&i, es->cbuf, es->linelen, es->cursor, in expand_word()
5282 nwords = x_cf_glob(&flags, es->cbuf, es->linelen, es->cursor, in complete_word()
5371 nwords = x_cf_glob(&i, est->cbuf, est->linelen, est->cursor, in print_expansions()