Home | History | Annotate | Download | only in mail

Lines Matching defs:lf

759 emacs_ctrl_d(EditLine *el, const LineInfo *lf, int ch)
764 if (lf->buffer == lf->lastchar)
766 if (lf->cursor != lf->lastchar) { /* delete without using ^D */
780 get_dolist(const LineInfo *lf)
788 len = lf->lastchar - lf->buffer;
792 cursor_pos = last_line + (lf->cursor - lf->buffer);
795 strncmp(last_line, lf->buffer, len) == 0;
797 (void)strlcpy(last_line, lf->buffer, len + 1);
804 * Take the full line (lf) including the command and split it into a
808 split_line(const char **cmplarray, const LineInfo *lf)
817 len = lf->cursor - lf->buffer;
821 (void)strlcpy(line, lf->buffer, len + 1);
918 const LineInfo *lf;
924 lf = el_line(el);
929 if ((cc_ret = emacs_ctrl_d(el, lf, ch)) != -1)
934 if ((dolist = get_dolist(lf)) == -1)
937 if ((li = split_line(&cmplarray, lf)) == NULL)
994 const LineInfo *lf;
998 lf = el_line(el);
1003 if ((cc_ret = emacs_ctrl_d(el, lf, ch)) != -1)
1008 word_len = lf->cursor - lf->buffer;
1012 (void)strlcpy(word, lf->buffer, word_len + 1); /* do not use estrlcpy here! */
1014 if ((dolist = get_dolist(lf)) == -1)
1031 const LineInfo *lf;
1035 lf = el_line(el);
1040 if ((cc_ret = emacs_ctrl_d(el, lf, ch)) != -1)
1045 word_len = lf->cursor - lf->buffer;
1058 strncmp(lf->buffer, ename, word_len) == 0) {
1064 (void)strlcpy(word, lf->buffer, word_len + 1);
1066 if ((dolist = get_dolist(lf)) == -1)
1159 cnt--; /* trash the trailing LF */