Searched refs:el_line (Results 1 – 17 of 17) sorted by relevance
/external/libedit/src/ |
D | emacs.c | 58 if (el->el_line.cursor == el->el_line.lastchar) { in em_delete_or_list() 60 if (el->el_line.cursor == el->el_line.buffer) { in em_delete_or_list() 77 if (el->el_line.cursor > el->el_line.lastchar) in em_delete_or_list() 78 el->el_line.cursor = el->el_line.lastchar; in em_delete_or_list() 95 if (el->el_line.cursor == el->el_line.lastchar) in em_delete_next_word() 98 cp = c__next_word(el->el_line.cursor, el->el_line.lastchar, in em_delete_next_word() 101 for (p = el->el_line.cursor, kp = el->el_chared.c_kill.buf; p < cp; p++) in em_delete_next_word() 106 c_delafter(el, (int)(cp - el->el_line.cursor)); /* delete after dot */ in em_delete_next_word() 107 if (el->el_line.cursor > el->el_line.lastchar) in em_delete_next_word() 108 el->el_line.cursor = el->el_line.lastchar; in em_delete_next_word() [all …]
|
D | common.c | 59 *el->el_line.lastchar = '\0'; in ed_end_of_file() 76 if (el->el_line.lastchar + el->el_state.argument >= in ed_insert() 77 el->el_line.limit) { in ed_insert() 85 || el->el_line.cursor >= el->el_line.lastchar) in ed_insert() 88 *el->el_line.cursor++ = c; in ed_insert() 94 while (count-- && el->el_line.cursor < el->el_line.lastchar) in ed_insert() 95 *el->el_line.cursor++ = c; in ed_insert() 116 if (el->el_line.cursor == el->el_line.buffer) in ed_delete_prev_word() 119 cp = c__prev_word(el->el_line.cursor, el->el_line.buffer, in ed_delete_prev_word() 122 for (p = cp, kp = el->el_chared.c_kill.buf; p < el->el_line.cursor; p++) in ed_delete_prev_word() [all …]
|
D | chared.c | 66 size = (size_t)(el->el_line.lastchar - el->el_line.buffer); in cv_undo() 68 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer); in cv_undo() 69 (void)memcpy(vu->buf, el->el_line.buffer, size * sizeof(*vu->buf)); in cv_undo() 100 if (el->el_line.lastchar + num >= el->el_line.limit) { in c_insert() 105 if (el->el_line.cursor < el->el_line.lastchar) { in c_insert() 107 for (cp = el->el_line.lastchar; cp >= el->el_line.cursor; cp--) in c_insert() 110 el->el_line.lastchar += num; in c_insert() 121 if (el->el_line.cursor + num > el->el_line.lastchar) in c_delafter() 122 num = (int)(el->el_line.lastchar - el->el_line.cursor); in c_delafter() 126 cv_yank(el, el->el_line.cursor, num); in c_delafter() [all …]
|
D | vi.c | 71 cv_yank(el, el->el_line.buffer, in cv_action() 72 (int)(el->el_line.lastchar - el->el_line.buffer)); in cv_action() 76 el->el_line.lastchar = el->el_line.buffer; in cv_action() 77 el->el_line.cursor = el->el_line.buffer; in cv_action() 84 el->el_chared.c_vcmd.pos = el->el_line.cursor; in cv_action() 106 if (!c && el->el_line.cursor < el->el_line.lastchar) in cv_paste() 107 el->el_line.cursor++; in cv_paste() 110 if (el->el_line.cursor + len > el->el_line.lastchar) in cv_paste() 112 (void) memcpy(el->el_line.cursor, k->buf, len * in cv_paste() 113 sizeof(*el->el_line.cursor)); in cv_paste() [all …]
|
D | search.c | 60 ((el)->el_line.cursor + (((el)->el_map.type == MAP_VI) && \ 180 (size_t)(EL_CURSOR(el) - el->el_line.buffer); in c_setpat() 184 (void) Strncpy(el->el_search.patbuf, el->el_line.buffer, in c_setpat() 197 EL_CURSOR(el) - el->el_line.buffer, in c_setpat() 198 el->el_line.lastchar - el->el_line.buffer); in c_setpat() 213 Char ch, *ocursor = el->el_line.cursor, oldpchar = pchar; in ce_inc_search() 223 if (el->el_line.lastchar + sizeof(STRfwd) / in ce_inc_search() 224 sizeof(*el->el_line.lastchar) + 2 + in ce_inc_search() 225 el->el_search.patlen >= el->el_line.limit) in ce_inc_search() 241 *el->el_line.lastchar++ = '\n'; in ce_inc_search() [all …]
|
D | hist.c | 104 (void) Strncpy(el->el_line.buffer, el->el_history.buf, in hist_get() 106 el->el_line.lastchar = el->el_line.buffer + in hist_get() 111 el->el_line.cursor = el->el_line.buffer; in hist_get() 114 el->el_line.cursor = el->el_line.lastchar; in hist_get() 131 (void) Strncpy(el->el_line.buffer, hp, in hist_get() 132 (size_t)(el->el_line.limit - el->el_line.buffer)); in hist_get() 133 el->el_line.buffer[el->el_line.limit - el->el_line.buffer - 1] = '\0'; in hist_get() 134 el->el_line.lastchar = el->el_line.buffer + Strlen(el->el_line.buffer); in hist_get() 136 if (el->el_line.lastchar > el->el_line.buffer in hist_get() 137 && el->el_line.lastchar[-1] == '\n') in hist_get() [all …]
|
D | read.c | 108 if (el->el_line.cursor > el->el_line.lastchar) in read_debug() 110 if (el->el_line.cursor < el->el_line.buffer) in read_debug() 112 if (el->el_line.cursor > el->el_line.limit) in read_debug() 114 if (el->el_line.lastchar > el->el_line.limit) in read_debug() 116 if (el->el_line.limit != &el->el_line.buffer[EL_BUFSIZ - 2]) in read_debug() 502 cp = el->el_line.buffer; in FUN() 505 if (cp + 1 >= el->el_line.limit) { in FUN() 506 idx = (size_t)(cp - el->el_line.buffer); in FUN() 509 cp = &el->el_line.buffer[idx]; in FUN() 519 cp = el->el_line.buffer; in FUN() [all …]
|
D | refresh.c | 210 el->el_line.buffer)); in re_refresh() 223 if (el->el_line.cursor >= el->el_line.lastchar) { in re_refresh() 225 && el->el_line.lastchar != el->el_line.buffer) in re_refresh() 226 el->el_line.cursor = el->el_line.lastchar - 1; in re_refresh() 228 el->el_line.cursor = el->el_line.lastchar; in re_refresh() 239 if (el->el_line.lastchar - el->el_line.buffer > termsz) { in re_refresh() 244 size_t rem = (el->el_line.lastchar-el->el_line.buffer)%termsz; in re_refresh() 246 st = el->el_line.lastchar - rem in re_refresh() 251 st = el->el_line.buffer; in re_refresh() 253 for (cp = st; cp < el->el_line.lastchar; cp++) { in re_refresh() [all …]
|
D | el.h | 130 el_line_t el_line; /* The current line information */ member
|
D | histedit.h | 177 const LineInfo *el_line(EditLine *);
|
D | eln.c | 344 el_line(EditLine *el) in el_line() function
|
D | el.c | 522 return (const TYPE(LineInfo) *)(void *)&el->el_line; in TYPE()
|
D | readline.c | 234 li = el_line(el); in _resize_fun() 2100 const LineInfo *li = el_line(e); in _rl_update_pos()
|
/external/libedit/examples/ |
D | tc1.c | 98 const LineInfo *lf = el_line(el); in complete() 187 li = el_line(el); in main()
|
/external/libedit/doc/ |
D | Makefile.am | 8 el_resize.3 el_line.3 el_insertstr.3 el_deletestr.3 \
|
D | Makefile.in | 266 el_resize.3 el_line.3 el_insertstr.3 el_deletestr.3 \
|
/external/llvm/lib/LineEditor/ |
D | LineEditor.cpp | 141 const LineInfo *LI = ::el_line(EL); in ElCompletionFn()
|