Lines Matching refs:fx

457 re_clear_eol(EditLine *el, int fx, int sx, int diff)  in re_clear_eol()  argument
461 sx, fx, diff)); in re_clear_eol()
463 if (fx < 0) in re_clear_eol()
464 fx = -fx; in re_clear_eol()
467 if (fx > diff) in re_clear_eol()
468 diff = fx; in re_clear_eol()
506 int fx, sx; in re_update_line() local
634 fx = (int)((nsb - nfd) - (osb - ofd)); in re_update_line()
642 if (fx > 0) { in re_update_line()
658 if (fx < 0) { in re_update_line()
688 fx = (int)((nsb - nfd) - (osb - ofd)); in re_update_line()
691 ELRE_DEBUG(1, (__F, "fx %d, sx %d\n", fx, sx)); in re_update_line()
765 if ((nsb != nfd) && fx > 0 && in re_update_line()
766 ((p - old) + fx <= el->el_terminal.t_size.h)) { in re_update_line()
781 if (fx > 0) { in re_update_line()
784 terminal_insertwrite(el, nfd, fx); in re_update_line()
786 el->el_terminal.t_size.h, nfd, fx); in re_update_line()
792 len = (size_t) ((nsb - nfd) - fx); in re_update_line()
793 terminal_overwrite(el, (nfd + fx), len); in re_update_line()
794 re__strncopy(ofd + fx, nfd + fx, len); in re_update_line()
805 } else if (fx < 0) { in re_update_line()
821 if (fx < 0) { in re_update_line()
824 terminal_deletechars(el, -fx); in re_update_line()
826 el->el_terminal.t_size.h, -fx); in re_update_line()
842 re_clear_eol(el, fx, sx, in re_update_line()
850 fx = 0; in re_update_line()
852 if (sx < 0 && (ose - old) + fx < el->el_terminal.t_size.h) { in re_update_line()
854 "second diff delete at %d...\r\n", (ose - old) + fx)); in re_update_line()
862 terminal_move_to_char(el, (int)((ose - old) + fx)); in re_update_line()
884 re_clear_eol(el, fx, sx, in re_update_line()
891 if ((nsb != nfd) && (osb - ofd) <= (nsb - nfd) && (fx == 0)) { in re_update_line()
906 fx = (int)((nsb - nfd) - (osb - ofd)); in re_update_line()
907 if (fx > 0) { in re_update_line()
913 terminal_insertwrite(el, nfd, fx); in re_update_line()
915 el->el_terminal.t_size.h, nfd, fx); in re_update_line()
921 len = (size_t) ((nsb - nfd) - fx); in re_update_line()
922 terminal_overwrite(el, (nfd + fx), len); in re_update_line()
923 re__strncopy(ofd + fx, nfd + fx, len); in re_update_line()