Lines Matching refs:linelen
3374 ssize_t linelen; member
3557 undobuf.linelen = ebuf.linelen = 0; in x_vi()
3608 if (es->linelen == 0) { in x_vi()
3625 if (c == -1 || (ssize_t)LINE <= es->linelen) in x_vi()
3629 memcpy(buf, es->cbuf, es->linelen); in x_vi()
3631 buf[es->linelen++] = '\n'; in x_vi()
3633 return (es->linelen); in x_vi()
3693 es->linelen = 0; in vi_hook()
3702 es->linelen = 0; in vi_hook()
3799 es->linelen -= char_len(locpat[srchlen]); in vi_hook()
3800 es->cursor = es->linelen; in vi_hook()
3809 es->linelen = 1; in vi_hook()
3827 es->linelen -= char_len(locpat[i]); in vi_hook()
3829 es->cursor = es->linelen; in vi_hook()
3838 if ((size_t)es->linelen + 2 > in vi_hook()
3841 es->cbuf[es->linelen++] = '^'; in vi_hook()
3842 es->cbuf[es->linelen++] = UNCTRL(ch); in vi_hook()
3844 if (es->linelen >= es->cbufsize) in vi_hook()
3846 es->cbuf[es->linelen++] = ch; in vi_hook()
3848 es->cursor = es->linelen; in vi_hook()
3976 if (es->cursor >= undo->linelen) in vi_insert()
3977 es->linelen--; in vi_insert()
3986 es->linelen--; in vi_insert()
3988 es->linelen - es->cursor + 1); in vi_insert()
3997 es->linelen - es->cursor); in vi_insert()
3998 es->linelen -= es->cursor; in vi_insert()
4008 es->linelen - es->cursor); in vi_insert()
4009 es->linelen -= es->cursor - tcursor; in vi_insert()
4073 if (es->linelen >= es->cbufsize - 1) in vi_insert()
4078 es->linelen - es->cursor); in vi_insert()
4079 es->linelen++; in vi_insert()
4082 if (insert == REPLACE && es->cursor > es->linelen) in vi_insert()
4083 es->linelen++; in vi_insert()
4102 if (cur == es->linelen && cur != 0) in vi_cmd()
4111 memmove(undo->cbuf, es->cbuf, es->linelen); in vi_cmd()
4112 undo->linelen = es->linelen; in vi_cmd()
4168 if (es->linelen != 0) in vi_cmd()
4177 es->cursor = es->linelen; in vi_cmd()
4183 del_range(es->cursor, es->linelen); in vi_cmd()
4197 c2 = es->linelen; in vi_cmd()
4237 if (es->linelen != 0) in vi_cmd()
4264 del_range(es->cursor, es->linelen); in vi_cmd()
4269 yank_range(es->cursor, es->linelen); in vi_cmd()
4270 del_range(es->cursor, es->linelen); in vi_cmd()
4328 if (es->linelen == 0) in vi_cmd()
4337 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4352 if (es->linelen == 0) in vi_cmd()
4356 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4357 argcnt = es->linelen - es->cursor; in vi_cmd()
4364 if (es->linelen == 0) in vi_cmd()
4367 es->cbuf[es->linelen] = '\0'; in vi_cmd()
4382 es->linelen = strlen(es->cbuf); in vi_cmd()
4386 if (es->linelen == 0) in vi_cmd()
4390 if (es->cursor + argcnt > es->linelen) in vi_cmd()
4391 argcnt = es->linelen - es->cursor; in vi_cmd()
4498 if (es->cursor != es->linelen) in vi_cmd()
4519 if (es->linelen == 0) in vi_cmd()
4532 if (es->cursor < es->linelen - 1) in vi_cmd()
4541 &es->linelen); in vi_cmd()
4586 if (es->linelen != 0) in vi_cmd()
4591 if (insert == 0 && es->cursor != 0 && es->cursor >= es->linelen) in vi_cmd()
4617 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4620 if (sub && ncursor < es->linelen) in domove()
4625 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4628 if (sub && ncursor < es->linelen) in domove()
4666 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4668 if (es->linelen != 0) { in domove()
4670 if (ncursor > es->linelen) in domove()
4671 ncursor = es->linelen; in domove()
4676 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4682 if (!sub && es->cursor + 1 >= es->linelen) in domove()
4693 while (ncursor < es->linelen - 1 && in domove()
4700 if (ncursor > es->linelen) in domove()
4701 ncursor = es->linelen; in domove()
4707 if (es->linelen != 0) in domove()
4708 ncursor = es->linelen; in domove()
4715 while (ncursor < es->linelen && in domove()
4718 if (ncursor == es->linelen) in domove()
4723 if (++ncursor >= es->linelen) in domove()
4800 memmove(holdbufp, es->cbuf, es->linelen); in save_cbuf()
4801 holdlen = es->linelen; in save_cbuf()
4809 es->linelen = holdlen; in restore_cbuf()
4821 memcpy(news->cbuf, old->cbuf, old->linelen); in save_edstate()
4823 news->linelen = old->linelen; in save_edstate()
4832 memcpy(news->cbuf, old->cbuf, old->linelen); in restore_edstate()
4833 news->linelen = old->linelen; in restore_edstate()
4863 if (es->cursor + len > es->linelen) in putbuf()
4864 es->linelen = es->cursor + len; in putbuf()
4866 if (es->linelen + len >= es->cbufsize) in putbuf()
4869 es->linelen - es->cursor); in putbuf()
4870 es->linelen += len; in putbuf()
4880 if (es->linelen != b) in del_range()
4881 memmove(&es->cbuf[a], &es->cbuf[b], es->linelen - b); in del_range()
4882 es->linelen -= b - a; in del_range()
4890 if (es->linelen == 0) in findch()
4896 if (++ncursor == es->linelen) in findch()
4919 while (ncursor < es->linelen && argcnt--) { in forwword()
4922 ncursor < es->linelen) in forwword()
4927 ncursor < es->linelen) in forwword()
4930 ncursor < es->linelen) in forwword()
4967 while (ncursor < es->linelen && argcnt--) { in endword()
4968 while (++ncursor < es->linelen - 1 && in endword()
4971 if (ncursor < es->linelen - 1) { in endword()
4973 while (++ncursor < es->linelen && in endword()
4977 while (++ncursor < es->linelen && in endword()
4993 while (ncursor < es->linelen && argcnt--) { in Forwword()
4995 ncursor < es->linelen) in Forwword()
4998 ncursor < es->linelen) in Forwword()
5026 while (ncursor < es->linelen - 1 && argcnt--) { in Endword()
5027 while (++ncursor < es->linelen - 1 && in Endword()
5030 if (ncursor < es->linelen - 1) { in Endword()
5031 while (++ncursor < es->linelen && in Endword()
5059 if ((es->linelen = strlen(hptr)) >= es->cbufsize) in grabhist()
5060 es->linelen = es->cbufsize - 1; in grabhist()
5061 memmove(es->cbuf, hptr, es->linelen); in grabhist()
5093 if ((es->linelen = strlen(hptr)) >= es->cbufsize) in grabsearch()
5094 es->linelen = es->cbufsize - 1; in grabsearch()
5095 memmove(es->cbuf, hptr, es->linelen); in grabsearch()
5189 while (col < winwidth && cur < es->linelen) { in display()
5305 nwords = x_cf_glob(&i, es->cbuf, es->linelen, es->cursor, in expand_word()
5372 nwords = x_cf_glob(&flags, es->cbuf, es->linelen, es->cursor, in complete_word()
5461 nwords = x_cf_glob(&i, est->cbuf, est->linelen, est->cursor, in print_expansions()