Lines Matching full:xbuf
910 static char *xbuf; /* beg input buffer */
1190 xbp = xbuf = buf;
1247 i = xep - xbuf;
1379 if (xcp == xbuf) {
1385 } while ((++i < x_arg) && (xcp != xbuf));
1467 x_e_putc2((xep > xlp) ? '>' : (xbp > xbuf) ? '<' : ' ');
1518 if (cp == xbuf) {
1523 while (cp != xbuf && is_mfs(cp[-1])) {
1527 while (cp != xbuf && !is_mfs(cp[-1])) {
1561 cp = cp >= xep ? xep : x_bs0(cp, xbuf);
1655 if (xcp == xbuf) {
1661 if (xcp == xbuf)
1699 (cp = strstr(xbuf, tmp)) == NULL) {
1720 if (p-- == xbuf)
1825 oldsize = x_size_str(xbuf);
1827 strlcpy(holdbufp, xbuf, LINE);
1828 strlcpy(xbuf, sp, xend - xbuf);
1829 xbp = xbuf;
1830 xep = xcp = xbuf + strlen(xbuf);
1852 if (xep == xbuf && x_arg_defaulted)
1862 int offset = -1; /* offset of match in xbuf, else -1 */
1919 offset = x_match(xbuf, pat);
1921 x_goto(xbuf + offset + (p - pat) -
1955 x_goto(xbuf + i + strlen(pat) - (*pat == '^'));
1984 size_t curs = xcp - xbuf;
1987 if (strncmp(xbuf, *hp, curs) == 0) {
1989 x_goto(xbuf + curs);
2016 i = xep - xbuf;
2017 j = x_size_str(xbuf);
2018 xcp = xbuf;
2020 xlp = xbp = xep = xbuf;
2039 x_goto(xbuf);
2081 if (xbp == xbuf) {
2089 if (xbp != xbuf || xep > xlp)
2113 if (xbp > xbuf)
2117 } else if (xbp > xbuf)
2150 if (xcp == xbuf) {
2154 if (xcp - xbuf == 1) {
2223 size_t col = xcp - xbuf;
2224 size_t lastcol = xep - xbuf;
2230 x_goto(xbuf + narg);
2298 xlp = xep = xcp = xbp = xbuf;
2680 nwords = x_cf_glob(&i, xbuf, xep - xbuf, xcp - xbuf,
2687 x_goto(xbuf + start);
2714 nwords = x_cf_glob(&flags, xbuf, xep - xbuf, xcp - xbuf,
2741 strndupx(unescaped, xbuf + start, olen, ATEMP);
2766 xcp = xbuf + start;
2808 * from xcp to set xbp to (but never < xbuf) to 2/3 of
2817 if ((xbp = xcp - (x_displen / 2)) < xbuf)
2818 xbp = xbuf;
2824 xbp = xcp >= xep ? xep : x_bs0(xcp, xbuf);
2826 while (xbp > xbuf && col_left > 0) {
2827 xbp = x_bs0(xbp - 1, xbuf);
2831 if (xbp == xbuf && xcp != xbuf && col_left >= 0 && col_left < pwidth) {
2999 int oldsize = x_size_str(xbuf);
3000 ssize_t len = xep - xbuf;
3001 int ret = x_do_comment(xbuf, xend - xbuf, &len);
3007 xep = xbuf + len;
3009 xcp = xbp = xbuf;
3020 char *o_xbuf = xbuf, *o_xend = xend;
3028 xbuf = xbp = xcp = v;
3034 xbuf = o_xbuf;
3056 if (xep == xbuf) {
3062 histsave(&source->line, xbuf, true, true);
3068 shf_snprintf(xbuf, xend - xbuf, "%s %d",
3071 strlcpy(xbuf, "fc -e ${VISUAL:-${EDITOR:-vi}} --", xend - xbuf);
3072 xep = xbuf + strlen(xbuf);