Home
last modified time | relevance | path

Searched refs:el_line (Results 1 – 17 of 17) sorted by relevance

/external/libedit/src/
Demacs.c58 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 …]
Dcommon.c59 *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 …]
Dchared.c66 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 …]
Dvi.c71 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 …]
Dsearch.c60 ((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 …]
Dhist.c104 (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 …]
Dread.c108 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 …]
Drefresh.c210 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 …]
Del.h130 el_line_t el_line; /* The current line information */ member
Dhistedit.h177 const LineInfo *el_line(EditLine *);
Deln.c344 el_line(EditLine *el) in el_line() function
Del.c522 return (const TYPE(LineInfo) *)(void *)&el->el_line; in TYPE()
Dreadline.c234 li = el_line(el); in _resize_fun()
2100 const LineInfo *li = el_line(e); in _rl_update_pos()
/external/libedit/examples/
Dtc1.c98 const LineInfo *lf = el_line(el); in complete()
187 li = el_line(el); in main()
/external/libedit/doc/
DMakefile.am8 el_resize.3 el_line.3 el_insertstr.3 el_deletestr.3 \
DMakefile.in266 el_resize.3 el_line.3 el_insertstr.3 el_deletestr.3 \
/external/llvm/lib/LineEditor/
DLineEditor.cpp141 const LineInfo *LI = ::el_line(EL); in ElCompletionFn()