Fix to cmdedit.c from Vladimir
authorEric Andersen <andersen@codepoet.org>
Mon, 19 Mar 2001 17:48:55 +0000 (17:48 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 19 Mar 2001 17:48:55 +0000 (17:48 -0000)
cmdedit.c
shell/cmdedit.c

index 6dcc33844f2ee50604212b3b3b34704307fa9dcc..ffe7afab2a86a2f362ef5e3e92d14d6cea6a9ae9 100644 (file)
--- 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);
index 6dcc33844f2ee50604212b3b3b34704307fa9dcc..ffe7afab2a86a2f362ef5e3e92d14d6cea6a9ae9 100644 (file)
@@ -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);