• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Heimdal-323.92.1/lib/libedit/src/

Lines Matching +defs:num +defs:new

194  *	draws the new virtual screen image from the current input
195 * line, then goes line-by-line changing the real image to the new
305 * Copy the new line to be the current one, and pad out with
355 * insert num characters of s into d (in front of the character)
361 Char *d, int dat, int dlen, Char *s, int num)
365 if (num <= 0)
367 if (num > dlen - dat)
368 num = dlen - dat;
372 num, dat, dlen, ct_encode_string(d)));
375 /* open up the space for num chars */
376 if (num > 0) {
378 a = b - num;
386 num, dat, dlen, ct_encode_string(d)));
390 for (a = d + dat; (a < d + dlen) && (num > 0); num--)
398 num, dat, dlen, d, s));
405 * delete num characters d at dat, maximum length of d is dlen
410 Char *d, int dat, int dlen, int num)
414 if (num <= 0)
416 if (dat + num >= dlen) {
422 num, dat, dlen, ct_encode_string(d)));
424 /* open up the space for num chars */
425 if (num > 0) {
427 a = b + num;
434 num, dat, dlen, ct_encode_string(d)));
454 * number of characters between the new and old line.
484 new: eddie> Oh, my little buggy says to me, as lurgid as
486 \beginning of line | \new last same \new end of line
487 \new first difference
501 re_update_line(EditLine *el, Char *old, Char *new, int i)
512 for (o = old, n = new; *o && (*o == *n); o++, n++)
518 * Find the end of both old and new
537 /* remove blanks from end of new */
580 * if the new match is longer and it's worth
604 * if the new match is longer and it's worth
695 nfd - new, nsb - new, nse - new, nls - new, ne - new));
702 re_printstr(el, "new- ne", new, ne);
704 re_printstr(el, "new-nfd", new, nfd);
730 * \new \nfd \nsb \nse \nls \ne
734 * characters to delete if < 0 (new is shorter than old, as above),
735 * or insert (new is longer than short).
768 (__F, "first diff insert at %d...\r\n", nfd - new));
772 term_move_to_char(el, (int)(nfd - new));
779 * insert fx chars of new starting at nfd
789 * write (nsb-nfd) - fx chars of new starting at
829 * write (nsb-nfd) chars of new starting at nfd
839 * write (nsb-nfd) chars of new starting at nfd
843 (int)((oe - old) - (ne - new)));
877 * write (nls-nse) chars of new starting at nse
885 (int)((oe - old) - (ne - new)));
893 nfd - new));
895 term_move_to_char(el, (int)(nfd - new));
909 * insert fx chars of new starting at nfd
918 * write (nsb-nfd) - fx chars of new starting at
936 "second diff insert at %d...\r\n", (int)(nse - new)));
937 term_move_to_char(el, (int)(nse - new));
941 /* insert sx chars of new starting at nse */
947 * write (nls-nse) - sx chars of new starting at
989 * Move to the new cursor position
1147 * clear the screen buffers so that new new prompt starts fresh.
1181 term__putc(el, '\n'); /* go to new line */