Lines Matching +defs:b +defs:end
78 literal_add(EditLine *el, const wchar_t *buf, const wchar_t *end, int *wp)
83 char *b;
85 w = wcwidth(end[1]); /* column width of the visible char */
91 len = (size_t)(end - buf);
94 w += ct_enc_width(end[1]);
96 b = el_malloc((size_t)(w + 1));
97 if (b == NULL)
101 n += ct_encode_char(b + n, (size_t)(w - n), buf[i]);
102 n += ct_encode_char(b + n, (size_t)(w - n), end[1]);
103 b[n] = '\0';
117 free(b);
123 l->l_buf[l->l_idx++] = b;