From d8b210fd166166dad25d68163c60638e5d3000a3 Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 22 May 2007 19:27:05 +0000 Subject: [PATCH] dramsey bug #4: regression introduced in 1004651F21443013C37 (fix for bug #3) cf. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this one was harder to track down, additional variables coming into the play… --- edit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;