Lines Matching refs:cbuf
3443 char *cbuf; member
3621 ebuf.cbuf = buf; in x_vi()
3622 if (undobuf.cbuf == NULL) { in x_vi()
3625 undobuf.cbuf = alloc(LINE, AEDIT); in x_vi()
3673 xbuf = ebuf.cbuf; in x_vi()
3702 if (vs->cbuf != buf) in x_vi()
3703 memcpy(buf, vs->cbuf, vs->linelen); in x_vi()
3794 vs->cbuf[vs->cursor++] = ch; in vi_hook()
3896 new_es.cbuf = locpat; in vi_hook()
3919 vs->cbuf[vs->linelen++] = '^'; in vi_hook()
3920 vs->cbuf[vs->linelen++] = ksh_unctrl(ch); in vi_hook()
3924 vs->cbuf[vs->linelen++] = ch; in vi_hook()
3948 memcpy(srchpat + 1, vs->cbuf, vs->cursor); in vi_hook()
4059 vs->cbuf[vs->cursor] = undo->cbuf[vs->cursor]; in vi_insert()
4067 memmove(&vs->cbuf[vs->cursor], &vs->cbuf[vs->cursor + 1], in vi_insert()
4076 memmove(vs->cbuf, &vs->cbuf[vs->cursor], in vi_insert()
4087 memmove(&vs->cbuf[tcursor], &vs->cbuf[vs->cursor], in vi_insert()
4156 memmove(&vs->cbuf[vs->cursor + 1], &vs->cbuf[vs->cursor], in vi_insert()
4160 vs->cbuf[vs->cursor++] = ch; in vi_insert()
4191 memmove(undo->cbuf, vs->cbuf, vs->linelen); in vi_cmd()
4286 !ctype(vs->cbuf[vs->cursor], C_SPACE)) { in vi_cmd()
4289 } while (ctype(vs->cbuf[ncursor], C_SPACE)); in vi_cmd()
4421 vs->cbuf[vs->cursor + n] = cmd[1]; in vi_cmd()
4446 vs->cbuf[vs->linelen] = '\0'; in vi_cmd()
4447 histsave(&source->line, vs->cbuf, in vi_cmd()
4454 shf_snprintf(vs->cbuf, vs->cbufsize, Tf_sd, in vi_cmd()
4457 strlcpy(vs->cbuf, ctrl_x_e, vs->cbufsize); in vi_cmd()
4458 vs->linelen = strlen(vs->cbuf); in vi_cmd()
4597 p = &vs->cbuf[vs->cursor]; in vi_cmd()
4615 int ret = x_do_comment(vs->cbuf, vs->cbufsize, in vi_cmd()
4788 (i = bracktype(vs->cbuf[ncursor])) == 0) in domove()
4801 t = bracktype(vs->cbuf[ncursor]); in domove()
4823 ctype(vs->cbuf[ncursor], C_SPACE)) in domovebeg()
4845 memmove(ybuf, &vs->cbuf[a], yanklen); in yank_range()
4883 memmove(holdbufp, vs->cbuf, vs->linelen); in save_cbuf()
4893 memmove(vs->cbuf, holdbufp, holdlen); in restore_cbuf()
4903 news->cbuf = alloc(old->cbufsize, AEDIT); in save_edstate()
4904 memcpy(news->cbuf, old->cbuf, old->linelen); in save_edstate()
4915 memcpy(news->cbuf, old->cbuf, old->linelen); in restore_edstate()
4925 afree(old->cbuf, AEDIT); in free_edstate()
4951 memmove(&vs->cbuf[vs->cursor + len], &vs->cbuf[vs->cursor], in putbuf()
4955 memmove(&vs->cbuf[vs->cursor], buf, len); in putbuf()
4964 memmove(&vs->cbuf[a], &vs->cbuf[b], vs->linelen - b); in del_range()
4985 } while (vs->cbuf[ncursor] != ch); in findch()
5003 if (ctype(vs->cbuf[ncursor], C_ALNUX)) in forwword()
5005 ctype(vs->cbuf[ncursor], C_ALNUX)) in forwword()
5007 else if (!ctype(vs->cbuf[ncursor], C_SPACE)) in forwword()
5009 !ctype(vs->cbuf[ncursor], C_ALNUX | C_SPACE)) in forwword()
5012 ctype(vs->cbuf[ncursor], C_SPACE)) in forwword()
5025 while (--ncursor > 0 && ctype(vs->cbuf[ncursor], C_SPACE)) in backword()
5028 if (ctype(vs->cbuf[ncursor], C_ALNUX)) in backword()
5030 ctype(vs->cbuf[ncursor], C_ALNUX)) in backword()
5034 !ctype(vs->cbuf[ncursor], C_ALNUX | C_SPACE)) in backword()
5050 ctype(vs->cbuf[ncursor], C_SPACE)) in endword()
5053 if (ctype(vs->cbuf[ncursor], C_ALNUX)) in endword()
5055 ctype(vs->cbuf[ncursor], C_ALNUX)) in endword()
5059 !ctype(vs->cbuf[ncursor], C_ALNUX | C_SPACE)) in endword()
5075 !ctype(vs->cbuf[ncursor], C_SPACE)) in Forwword()
5078 ctype(vs->cbuf[ncursor], C_SPACE)) in Forwword()
5091 while (--ncursor >= 0 && ctype(vs->cbuf[ncursor], C_SPACE)) in Backword()
5093 while (ncursor >= 0 && !ctype(vs->cbuf[ncursor], C_SPACE)) in Backword()
5108 ctype(vs->cbuf[ncursor], C_SPACE)) in Endword()
5112 !ctype(vs->cbuf[ncursor], C_SPACE)) in Endword()
5141 memmove(vs->cbuf, hptr, vs->linelen); in grabhist()
5175 memmove(vs->cbuf, hptr, vs->linelen); in grabsearch()
5212 col = newcol((unsigned char)vs->cbuf[cur++], col); in outofwin()
5234 tcol = newcol((unsigned char)vs->cbuf[tcur++], tcol); in rewindow()
5237 holdcol1 = newcol((unsigned char)vs->cbuf[holdcur1++], in rewindow()
5266 if ((ch = vs->cbuf[cur]) == '\t') in display()
5377 nwords = x_cf_glob(&i, vs->cbuf, vs->linelen, vs->cursor, in expand_word()
5444 nwords = x_cf_glob(&flags, vs->cbuf, vs->linelen, vs->cursor, in complete_word()
5533 nwords = x_cf_glob(&i, est->cbuf, est->linelen, est->cursor, in print_expansions()