Lines Matching refs:xbuf
908 static char *xbuf; /* beg input buffer */ variable
1187 xbp = xbuf = buf; in x_emacs()
1244 i = xep - xbuf; in x_emacs()
1376 if (xcp == xbuf) { in x_del_back()
1382 } while ((++i < x_arg) && (xcp != xbuf)); in x_del_back()
1464 x_e_putc2((xep > xlp) ? '>' : (xbp > xbuf) ? '<' : ' '); in x_delete()
1515 if (cp == xbuf) { in x_bword()
1520 while (cp != xbuf && is_mfs(cp[-1])) { in x_bword()
1524 while (cp != xbuf && !is_mfs(cp[-1])) { in x_bword()
1558 cp = cp >= xep ? xep : x_bs0(cp, xbuf); in x_goto()
1652 if (xcp == xbuf) { in x_mv_back()
1658 if (xcp == xbuf) in x_mv_back()
1696 (cp = strstr(xbuf, tmp)) == NULL) { in x_search_char_forw()
1717 if (p-- == xbuf) in x_search_char_back()
1822 oldsize = x_size_str(xbuf); in x_load_hist()
1824 strlcpy(holdbufp, xbuf, LINE); in x_load_hist()
1825 strlcpy(xbuf, sp, xend - xbuf); in x_load_hist()
1826 xbp = xbuf; in x_load_hist()
1827 xep = xcp = xbuf + strlen(xbuf); in x_load_hist()
1849 if (xep == xbuf && x_arg_defaulted) in x_eot_del()
1916 offset = x_match(xbuf, pat); in x_search_hist()
1918 x_goto(xbuf + offset + (p - pat) - in x_search_hist()
1952 x_goto(xbuf + i + strlen(pat) - (*pat == '^')); in x_search()
1981 size_t curs = xcp - xbuf; in x_search_dir()
1984 if (strncmp(xbuf, *hp, curs) == 0) { in x_search_dir()
1986 x_goto(xbuf + curs); in x_search_dir()
2013 i = xep - xbuf; in x_del_line()
2014 j = x_size_str(xbuf); in x_del_line()
2015 xcp = xbuf; in x_del_line()
2017 xlp = xbp = xep = xbuf; in x_del_line()
2036 x_goto(xbuf); in x_mv_begin()
2078 if (xbp == xbuf) { in x_redraw()
2086 if (xbp != xbuf || xep > xlp) in x_redraw()
2110 if (xbp > xbuf) in x_redraw()
2114 } else if (xbp > xbuf) in x_redraw()
2147 if (xcp == xbuf) { in x_transpose()
2151 if (xcp - xbuf == 1) { in x_transpose()
2220 size_t col = xcp - xbuf; in x_kill()
2221 size_t lastcol = xep - xbuf; in x_kill()
2227 x_goto(xbuf + narg); in x_kill()
2294 xlp = xep = xcp = xbp = xbuf; in x_abort()
2674 nwords = x_cf_glob(&i, xbuf, xep - xbuf, xcp - xbuf, in x_expand()
2681 x_goto(xbuf + start); in x_expand()
2708 nwords = x_cf_glob(&flags, xbuf, xep - xbuf, xcp - xbuf, in do_complete()
2735 strndupx(unescaped, xbuf + start, olen, ATEMP); in do_complete()
2760 xcp = xbuf + start; in do_complete()
2811 if ((xbp = xcp - (x_displen / 2)) < xbuf) in x_adjust()
2812 xbp = xbuf; in x_adjust()
2818 xbp = xcp >= xep ? xep : x_bs0(xcp, xbuf); in x_adjust()
2820 while (xbp > xbuf && col_left > 0) { in x_adjust()
2821 xbp = x_bs0(xbp - 1, xbuf); in x_adjust()
2825 if (xbp == xbuf && xcp != xbuf && col_left >= 0 && col_left < pwidth) { in x_adjust()
2993 int oldsize = x_size_str(xbuf); in x_comment()
2994 ssize_t len = xep - xbuf; in x_comment()
2995 int ret = x_do_comment(xbuf, xend - xbuf, &len); in x_comment()
3001 xep = xbuf + len; in x_comment()
3003 xcp = xbp = xbuf; in x_comment()
3014 char *o_xbuf = xbuf, *o_xend = xend; in x_version()
3022 xbuf = xbp = xcp = v; in x_version()
3028 xbuf = o_xbuf; in x_version()
3050 if (xep == xbuf) { in x_edit_line()
3056 histsave(&source->line, xbuf, true, true); in x_edit_line()
3062 shf_snprintf(xbuf, xend - xbuf, "%s %d", in x_edit_line()
3065 strlcpy(xbuf, "fc -e ${VISUAL:-${EDITOR:-vi}} --", xend - xbuf); in x_edit_line()
3066 xep = xbuf + strlen(xbuf); in x_edit_line()