Lines Matching defs:fx
432 * the line. fx and sx is the number of characters inserted or deleted
437 re_clear_eol(EditLine *el, int fx, int sx, int diff)
440 ELRE_DEBUG(1, (__F, "re_clear_eol sx %d, fx %d, diff %d\n",
441 sx, fx, diff));
443 if (fx < 0)
444 fx = -fx;
447 if (fx > diff)
448 diff = fx;
486 int fx, sx;
611 * fx is the number of characters we need to insert/delete: in the
614 fx = (int)((nsb - nfd) - (osb - ofd));
622 if (fx > 0) {
638 if (fx < 0) {
666 * Now that we are done with pragmatics we recompute fx, sx
668 fx = (int)((nsb - nfd) - (osb - ofd));
671 ELRE_DEBUG(1, (__F, "fx %d, sx %d\n", fx, sx));
712 * fx is the difference in length between the chars between nfd and
745 if ((nsb != nfd) && fx > 0 &&
746 ((p - old) + fx <= el->el_term.t_size.h)) {
759 * insert fx chars of new starting at nfd
761 if (fx > 0) {
764 term_insertwrite(el, nfd, fx);
766 el->el_term.t_size.h, nfd, fx);
769 * write (nsb-nfd) - fx chars of new starting at
770 * (nfd + fx)
772 len = (size_t) ((nsb - nfd) - fx);
773 term_overwrite(el, (nfd + fx), len);
774 re__strncopy(ofd + fx, nfd + fx, len);
785 } else if (fx < 0) {
798 * fx is less than zero *always* here but we check
801 if (fx < 0) {
804 term_deletechars(el, -fx);
806 el->el_term.t_size.h, -fx);
822 re_clear_eol(el, fx, sx,
830 fx = 0;
832 if (sx < 0 && (ose - old) + fx < el->el_term.t_size.h) {
834 "second diff delete at %d...\r\n", (ose - old) + fx));
839 * fx is the number of characters inserted (+) or deleted (-)
842 term_move_to_char(el, (int)((ose - old) + fx));
864 re_clear_eol(el, fx, sx,
871 if ((nsb != nfd) && (osb - ofd) <= (nsb - nfd) && (fx == 0)) {
882 * We have to recalculate fx here because we set it
886 fx = (int)((nsb - nfd) - (osb - ofd));
887 if (fx > 0) {
889 * insert fx chars of new starting at nfd
893 term_insertwrite(el, nfd, fx);
895 el->el_term.t_size.h, nfd, fx);
898 * write (nsb-nfd) - fx chars of new starting at
899 * (nfd + fx)
901 len = (size_t) ((nsb - nfd) - fx);
902 term_overwrite(el, (nfd + fx), len);
903 re__strncopy(ofd + fx, nfd + fx, len);