• Home
  • Raw
  • Download

Lines Matching refs:xbuf

934 static char *xbuf;		/* beg input buffer */  variable
1269 xbp = xbuf = buf; in x_emacs()
1332 i = xep - xbuf; in x_emacs()
1456 if (xcp == xbuf) { in x_del_back()
1462 } while ((++i < x_arg) && (xcp != xbuf)); in x_del_back()
1544 x_e_putc2((xep > xlp) ? '>' : (xbp > xbuf) ? '<' : ' '); in x_delete()
1592 if (cp == xbuf) { in x_bword()
1597 while (cp != xbuf && ctype(cp[-1], C_MFS)) { in x_bword()
1601 while (cp != xbuf && !ctype(cp[-1], C_MFS)) { in x_bword()
1635 cp = cp >= xep ? xep : x_bs0(cp, xbuf); in x_goto()
1720 if (xcp == xbuf) { in x_mv_back()
1726 if (xcp == xbuf) in x_mv_back()
1764 (cp = strstr(xbuf, tmp)) == NULL) { in x_search_char_forw()
1785 if (p-- == xbuf) in x_search_char_back()
1891 strlcpy(holdbufp, xbuf, LINE); in x_load_hist()
1892 strlcpy(xbuf, sp, xend - xbuf); in x_load_hist()
1893 xbp = xbuf; in x_load_hist()
1894 xep = xcp = strnul(xbuf); in x_load_hist()
1914 if (xep == xbuf && x_arg_defaulted) in x_eot_del()
1983 offset = x_match(xbuf, pat); in x_search_hist()
1985 x_goto(xbuf + offset + (p - pat) - in x_search_hist()
2022 x_goto(xbuf + i + patlen); in x_search()
2051 size_t curs = xcp - xbuf; in x_search_dir()
2054 if (strncmp(xbuf, *hp, curs) == 0) { in x_search_dir()
2056 x_goto(xbuf + curs); in x_search_dir()
2081 x_push(xep - (xcp = xbuf)); in x_del_line()
2082 xlp = xbp = xep = xbuf; in x_del_line()
2101 x_goto(xbuf); in x_mv_beg()
2171 if (xbp == xbuf) in x_redraw()
2178 lch = xep > xlp ? (xbp > xbuf ? '*' : '>') : (xbp > xbuf) ? '<' : ' '; in x_redraw()
2205 if (xcp == xbuf) { in x_transpose()
2209 if (xcp - xbuf == 1) { in x_transpose()
2285 size_t col = xcp - xbuf; in x_kill()
2286 size_t lastcol = xep - xbuf; in x_kill()
2292 x_goto(xbuf + narg); in x_kill()
2357 strip_nuls(xbuf, xep - xbuf); in x_intr()
2358 if (*xbuf) in x_intr()
2359 histsave(&source->line, xbuf, HIST_STORE, true); in x_intr()
2360 xlp = xep = xcp = xbp = xbuf; in x_intr()
2783 nwords = x_cf_glob(&i, xbuf, xep - xbuf, xcp - xbuf, in x_expand()
2790 x_goto(xbuf + start); in x_expand()
2817 nwords = x_cf_glob(&flags, xbuf, xep - xbuf, xcp - xbuf, in do_complete()
2844 strndupx(unescaped, xbuf + start, olen, ATEMP); in do_complete()
2869 xcp = xbuf + start; in do_complete()
2920 if ((xbp = xcp - (x_displen / 2)) < xbuf) in x_adjust()
2921 xbp = xbuf; in x_adjust()
2927 xbp = xcp >= xep ? xep : x_bs0(xcp, xbuf); in x_adjust()
2929 while (xbp > xbuf && col_left > 0) { in x_adjust()
2930 xbp = x_bs0(xbp - 1, xbuf); in x_adjust()
2934 if (xbp == xbuf && xcp != xbuf && col_left >= 0 && col_left < pwidth) { in x_adjust()
3114 ssize_t len = xep - xbuf; in x_comment()
3115 int ret = x_do_comment(xbuf, xend - xbuf, &len); in x_comment()
3121 xep = xbuf + len; in x_comment()
3123 xcp = xbp = xbuf; in x_comment()
3134 char *o_xbuf = xbuf, *o_xend = xend; in x_version()
3140 xbuf = xbp = xcp = v; in x_version()
3146 xbuf = o_xbuf; in x_version()
3170 histsave(&source->line, xbuf, HIST_STORE, true); in x_edit_line()
3176 shf_snprintf(xbuf, xend - xbuf, Tf_sd, ctrl_x_e, x_arg); in x_edit_line()
3178 strlcpy(xbuf, ctrl_x_e, xend - xbuf); in x_edit_line()
3179 xep = strnul(xbuf); in x_edit_line()
3673 xbuf = ebuf.cbuf; in x_vi()
3674 xep = xbuf; in x_vi()
5679 rgbeg = xbuf; in x_operate_region()