diff options
-rw-r--r-- | cmdedit.c | 1 | ||||
-rw-r--r-- | shell/cmdedit.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -580,6 +580,7 @@ static void cmdedit_setwidth(int w, int redraw_flg) | |||
580 | 580 | ||
581 | extern void cmdedit_init(void) | 581 | extern void cmdedit_init(void) |
582 | { | 582 | { |
583 | cmdedit_prmt_len = 0; | ||
583 | if ((handlers_sets & SET_WCHG_HANDLERS) == 0) { | 584 | if ((handlers_sets & SET_WCHG_HANDLERS) == 0) { |
584 | /* emulate usage handler to set handler and call yours work */ | 585 | /* emulate usage handler to set handler and call yours work */ |
585 | win_changed(-SIGWINCH); | 586 | 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) | |||
580 | 580 | ||
581 | extern void cmdedit_init(void) | 581 | extern void cmdedit_init(void) |
582 | { | 582 | { |
583 | cmdedit_prmt_len = 0; | ||
583 | if ((handlers_sets & SET_WCHG_HANDLERS) == 0) { | 584 | if ((handlers_sets & SET_WCHG_HANDLERS) == 0) { |
584 | /* emulate usage handler to set handler and call yours work */ | 585 | /* emulate usage handler to set handler and call yours work */ |
585 | win_changed(-SIGWINCH); | 586 | win_changed(-SIGWINCH); |