diff --git a/edit.c b/edit.c index b68eabc..2138589 100644 --- a/edit.c +++ b/edit.c @@ -5,7 +5,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.94 2007/05/21 19:25:31 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.95 2007/05/22 19:27:05 tg Exp $"); /* tty driver characters we are interested in */ typedef struct { @@ -1697,7 +1697,9 @@ x_delete(int nc, int push) */ if ((i = xx_cols - 2 - x_col) > 0 || xep - xlp == 0) { nw = (nw < i) ? nw : i; - i = ++nw; + if (xbp == xbuf) + ++nw; + i = nw; while (i--) x_e_putc2(' '); i = nw;