From: Eric Andersen Date: Mon, 19 Mar 2001 17:48:55 +0000 (-0000) Subject: Fix to cmdedit.c from Vladimir X-Git-Tag: 0_51~121 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61173a537149484dfaaeb8f94a2c86ef01d30613;p=oweals%2Fbusybox.git Fix to cmdedit.c from Vladimir --- diff --git a/cmdedit.c b/cmdedit.c index 6dcc33844..ffe7afab2 100644 --- a/cmdedit.c +++ b/cmdedit.c @@ -580,6 +580,7 @@ static void cmdedit_setwidth(int w, int redraw_flg) extern void cmdedit_init(void) { + cmdedit_prmt_len = 0; if ((handlers_sets & SET_WCHG_HANDLERS) == 0) { /* emulate usage handler to set handler and call yours work */ win_changed(-SIGWINCH); diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 6dcc33844..ffe7afab2 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c @@ -580,6 +580,7 @@ static void cmdedit_setwidth(int w, int redraw_flg) extern void cmdedit_init(void) { + cmdedit_prmt_len = 0; if ((handlers_sets & SET_WCHG_HANDLERS) == 0) { /* emulate usage handler to set handler and call yours work */ win_changed(-SIGWINCH);