Lines Matching defs:sx
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));
445 if (sx < 0)
446 sx = -sx;
449 if (sx > diff)
450 diff = sx;
486 int fx, sx;
616 * sx is the number of characters we need to insert/delete: in the
619 sx = (int)((nls - nse) - (ols - ose));
628 if (sx > 0) {
644 if (sx < 0) {
666 * Now that we are done with pragmatics we recompute fx, sx
669 sx = (int)((nls - nse) - (ols - ose));
671 ELRE_DEBUG(1, (__F, "fx %d, sx %d\n", fx, sx));
717 * sx is the same for the second differences.
822 re_clear_eol(el, fx, sx,
832 if (sx < 0 && (ose - old) + fx < el->el_term.t_size.h) {
851 if (sx < 0) {
854 term_deletechars(el, -sx);
864 re_clear_eol(el, fx, sx,
914 if (sx >= 0) {
920 if (sx > 0) {
921 /* insert sx chars of new starting at nse */
924 term_insertwrite(el, nse, sx);
927 * write (nls-nse) - sx chars of new starting at
928 * (nse + sx)
930 term_overwrite(el, (nse + sx),
931 (size_t)((nls - nse) - sx));