Lines Matching refs:cbuf
3331 char *cbuf; member
3510 ebuf.cbuf = buf; in x_vi()
3511 if (undobuf.cbuf == NULL) { in x_vi()
3514 undobuf.cbuf = alloc(LINE, AEDIT); in x_vi()
3588 if (es->cbuf != buf) in x_vi()
3589 memcpy(buf, es->cbuf, es->linelen); in x_vi()
3662 es->cbuf[es->cursor++] = ch; in vi_hook()
3764 new_es.cbuf = locpat; in vi_hook()
3787 es->cbuf[es->linelen++] = '^'; in vi_hook()
3788 es->cbuf[es->linelen++] = UNCTRL(ch); in vi_hook()
3792 es->cbuf[es->linelen++] = ch; in vi_hook()
3814 memmove(srchpat + 1, es->cbuf, es->cursor); in vi_hook()
3924 es->cbuf[es->cursor] = undo->cbuf[es->cursor]; in vi_insert()
3932 memmove(&es->cbuf[es->cursor], &es->cbuf[es->cursor + 1], in vi_insert()
3941 memmove(es->cbuf, &es->cbuf[es->cursor], in vi_insert()
3952 memmove(&es->cbuf[tcursor], &es->cbuf[es->cursor], in vi_insert()
4022 memmove(&es->cbuf[es->cursor + 1], &es->cbuf[es->cursor], in vi_insert()
4026 es->cbuf[es->cursor++] = ch; in vi_insert()
4056 memmove(undo->cbuf, es->cbuf, es->linelen); in vi_cmd()
4150 !ksh_isspace(es->cbuf[es->cursor])) { in vi_cmd()
4153 } while (ksh_isspace(es->cbuf[ncursor])); in vi_cmd()
4285 es->cbuf[es->cursor + n] = cmd[1]; in vi_cmd()
4312 es->cbuf[es->linelen] = '\0'; in vi_cmd()
4313 histsave(&source->line, es->cbuf, true, in vi_cmd()
4320 shf_snprintf(es->cbuf, es->cbufsize, "%s %d", in vi_cmd()
4324 strlcpy(es->cbuf, in vi_cmd()
4327 es->linelen = strlen(es->cbuf); in vi_cmd()
4467 p = &es->cbuf[es->cursor]; in vi_cmd()
4485 int ret = x_do_comment(es->cbuf, es->cbufsize, in vi_cmd()
4639 ksh_isspace(es->cbuf[ncursor])) in domove()
4661 (i = bracktype(es->cbuf[ncursor])) == 0) in domove()
4674 t = bracktype(es->cbuf[ncursor]); in domove()
4707 memmove(ybuf, &es->cbuf[a], yanklen); in yank_range()
4745 memmove(holdbufp, es->cbuf, es->linelen); in save_cbuf()
4755 memmove(es->cbuf, holdbufp, holdlen); in restore_cbuf()
4765 news->cbuf = alloc(old->cbufsize, AEDIT); in save_edstate()
4766 memcpy(news->cbuf, old->cbuf, old->linelen); in save_edstate()
4777 memcpy(news->cbuf, old->cbuf, old->linelen); in restore_edstate()
4787 afree(old->cbuf, AEDIT); in free_edstate()
4813 memmove(&es->cbuf[es->cursor + len], &es->cbuf[es->cursor], in putbuf()
4817 memmove(&es->cbuf[es->cursor], buf, len); in putbuf()
4826 memmove(&es->cbuf[a], &es->cbuf[b], es->linelen - b); in del_range()
4847 } while (es->cbuf[ncursor] != ch); in findch()
4865 if (ksh_isalnux(es->cbuf[ncursor])) in forwword()
4866 while (ksh_isalnux(es->cbuf[ncursor]) && in forwword()
4869 else if (!ksh_isspace(es->cbuf[ncursor])) in forwword()
4870 while (!ksh_isalnux(es->cbuf[ncursor]) && in forwword()
4871 !ksh_isspace(es->cbuf[ncursor]) && in forwword()
4874 while (ksh_isspace(es->cbuf[ncursor]) && in forwword()
4888 while (--ncursor > 0 && ksh_isspace(es->cbuf[ncursor])) in backword()
4891 if (ksh_isalnux(es->cbuf[ncursor])) in backword()
4893 ksh_isalnux(es->cbuf[ncursor])) in backword()
4897 !ksh_isalnux(es->cbuf[ncursor]) && in backword()
4898 !ksh_isspace(es->cbuf[ncursor])) in backword()
4914 ksh_isspace(es->cbuf[ncursor])) in endword()
4917 if (ksh_isalnux(es->cbuf[ncursor])) in endword()
4919 ksh_isalnux(es->cbuf[ncursor])) in endword()
4923 !ksh_isalnux(es->cbuf[ncursor]) && in endword()
4924 !ksh_isspace(es->cbuf[ncursor])) in endword()
4939 while (!ksh_isspace(es->cbuf[ncursor]) && in Forwword()
4942 while (ksh_isspace(es->cbuf[ncursor]) && in Forwword()
4956 while (--ncursor >= 0 && ksh_isspace(es->cbuf[ncursor])) in Backword()
4958 while (ncursor >= 0 && !ksh_isspace(es->cbuf[ncursor])) in Backword()
4973 ksh_isspace(es->cbuf[ncursor])) in Endword()
4977 !ksh_isspace(es->cbuf[ncursor])) in Endword()
5006 memmove(es->cbuf, hptr, es->linelen); in grabhist()
5040 memmove(es->cbuf, hptr, es->linelen); in grabsearch()
5083 col = newcol((unsigned char)es->cbuf[cur++], col); in outofwin()
5105 tcol = newcol((unsigned char)es->cbuf[tcur++], tcol); in rewindow()
5108 holdcol1 = newcol((unsigned char)es->cbuf[holdcur1++], in rewindow()
5137 if ((ch = es->cbuf[cur]) == '\t') in display()
5250 nwords = x_cf_glob(&i, es->cbuf, es->linelen, es->cursor, in expand_word()
5317 nwords = x_cf_glob(&flags, es->cbuf, es->linelen, es->cursor, in complete_word()
5406 nwords = x_cf_glob(&i, est->cbuf, est->linelen, est->cursor, in print_expansions()