aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmdedit.c1
-rw-r--r--shell/cmdedit.c1
2 files changed, 2 insertions, 0 deletions
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);