Lines Matching refs:xbuf
908 static char *xbuf; /* beg input buffer */ variable
1207 xbp = xbuf = buf; in x_emacs()
1264 i = xep - xbuf; in x_emacs()
1396 if (xcp == xbuf) { in x_del_back()
1402 } while ((++i < x_arg) && (xcp != xbuf)); in x_del_back()
1484 x_e_putc2((xep > xlp) ? '>' : (xbp > xbuf) ? '<' : ' '); in x_delete()
1535 if (cp == xbuf) { in x_bword()
1540 while (cp != xbuf && is_mfs(cp[-1])) { in x_bword()
1544 while (cp != xbuf && !is_mfs(cp[-1])) { in x_bword()
1578 cp = cp >= xep ? xep : x_bs0(cp, xbuf); in x_goto()
1672 if (xcp == xbuf) { in x_mv_back()
1678 if (xcp == xbuf) in x_mv_back()
1716 (cp = strstr(xbuf, tmp)) == NULL) { in x_search_char_forw()
1737 if (p-- == xbuf) in x_search_char_back()
1842 oldsize = x_size_str(xbuf); in x_load_hist()
1844 strlcpy(holdbufp, xbuf, LINE); in x_load_hist()
1845 strlcpy(xbuf, sp, xend - xbuf); in x_load_hist()
1846 xbp = xbuf; in x_load_hist()
1847 xep = xcp = xbuf + strlen(xbuf); in x_load_hist()
1869 if (xep == xbuf && x_arg_defaulted) in x_eot_del()
1936 offset = x_match(xbuf, pat); in x_search_hist()
1938 x_goto(xbuf + offset + (p - pat) - in x_search_hist()
1972 x_goto(xbuf + i + strlen(pat) - (*pat == '^')); in x_search()
2001 size_t curs = xcp - xbuf; in x_search_dir()
2004 if (strncmp(xbuf, *hp, curs) == 0) { in x_search_dir()
2006 x_goto(xbuf + curs); in x_search_dir()
2033 i = xep - xbuf; in x_del_line()
2034 j = x_size_str(xbuf); in x_del_line()
2035 xcp = xbuf; in x_del_line()
2037 xlp = xbp = xep = xbuf; in x_del_line()
2056 x_goto(xbuf); in x_mv_begin()
2098 if (xbp == xbuf) { in x_redraw()
2106 if (xbp != xbuf || xep > xlp) in x_redraw()
2130 if (xbp > xbuf) in x_redraw()
2134 } else if (xbp > xbuf) in x_redraw()
2167 if (xcp == xbuf) { in x_transpose()
2171 if (xcp - xbuf == 1) { in x_transpose()
2247 size_t col = xcp - xbuf; in x_kill()
2248 size_t lastcol = xep - xbuf; in x_kill()
2254 x_goto(xbuf + narg); in x_kill()
2317 xlp = xep = xcp = xbp = xbuf; in x_abort()
2699 nwords = x_cf_glob(&i, xbuf, xep - xbuf, xcp - xbuf, in x_expand()
2706 x_goto(xbuf + start); in x_expand()
2733 nwords = x_cf_glob(&flags, xbuf, xep - xbuf, xcp - xbuf, in do_complete()
2760 strndupx(unescaped, xbuf + start, olen, ATEMP); in do_complete()
2785 xcp = xbuf + start; in do_complete()
2836 if ((xbp = xcp - (x_displen / 2)) < xbuf) in x_adjust()
2837 xbp = xbuf; in x_adjust()
2843 xbp = xcp >= xep ? xep : x_bs0(xcp, xbuf); in x_adjust()
2845 while (xbp > xbuf && col_left > 0) { in x_adjust()
2846 xbp = x_bs0(xbp - 1, xbuf); in x_adjust()
2850 if (xbp == xbuf && xcp != xbuf && col_left >= 0 && col_left < pwidth) { in x_adjust()
3018 int oldsize = x_size_str(xbuf); in x_comment()
3019 ssize_t len = xep - xbuf; in x_comment()
3020 int ret = x_do_comment(xbuf, xend - xbuf, &len); in x_comment()
3026 xep = xbuf + len; in x_comment()
3028 xcp = xbp = xbuf; in x_comment()
3039 char *o_xbuf = xbuf, *o_xend = xend; in x_version()
3047 xbuf = xbp = xcp = v; in x_version()
3053 xbuf = o_xbuf; in x_version()
3075 if (xep == xbuf) { in x_edit_line()
3081 histsave(&source->line, xbuf, HIST_STORE, true); in x_edit_line()
3087 shf_snprintf(xbuf, xend - xbuf, "%s %d", in x_edit_line()
3090 strlcpy(xbuf, "fc -e ${VISUAL:-${EDITOR:-vi}} --", xend - xbuf); in x_edit_line()
3091 xep = xbuf + strlen(xbuf); in x_edit_line()