Home | History | Annotate | Download | only in libedit

Lines Matching defs:sx

492  *	the line. fx and sx is the number of characters inserted or deleted
497 re_clear_eol(EditLine *el, int fx, int sx, int diff)
500 ELRE_DEBUG(1, (__F, "re_clear_eol sx %d, fx %d, diff %d\n",
501 sx, fx, diff));
505 if (sx < 0)
506 sx = -sx;
509 if (sx > diff)
510 diff = sx;
546 int fx, sx;
676 * sx is the number of characters we need to insert/delete: in the
679 sx = (int)((nls - nse) - (ols - ose));
688 if (sx > 0) {
704 if (sx < 0) {
726 * Now that we are done with pragmatics we recompute fx, sx
729 sx = (int)((nls - nse) - (ols - ose));
731 ELRE_DEBUG(1, (__F, "fx %d, sx %d\n", fx, sx));
777 * sx is the same for the second differences.
882 re_clear_eol(el, fx, sx,
892 if (sx < 0 && (ose - old) + fx < el->el_terminal.t_size.h) {
911 if (sx < 0) {
914 terminal_deletechars(el, -sx);
924 re_clear_eol(el, fx, sx,
974 if (sx >= 0) {
980 if (sx > 0) {
981 /* insert sx chars of new starting at nse */
984 terminal_insertwrite(el, nse, sx);
987 * write (nls-nse) - sx chars of new starting at
988 * (nse + sx)
990 terminal_overwrite(el, (nse + sx),
991 (size_t)((nls - nse) - sx));