dramsey bug #4: regression introduced in 1004651F21443013C37 (fix for bug #3)

cf. Message-ID: <e3fded850705211623n20d2c695ke7b41d75ac439a6c@mail.gmail.com>

this one was harder to track down, additional variables coming into the play…
This commit is contained in:
tg 2007-05-22 19:27:05 +00:00
parent f5d4e21aa2
commit d8b210fd16

6
edit.c
View File

@ -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;