]> git.droids-corp.org - libcmdline.git/blobdiff - src/lib/cmdline_rdline.c
cmdline: new build system
[libcmdline.git] / src / lib / cmdline_rdline.c
index 5632a872a4d3052221888687d99ae123b248f690..785a23cd024b64f4f7a16613c4040eaf6e8cf0a6 100644 (file)
@@ -107,7 +107,7 @@ rdline_init(struct rdline *rdl,
        rdl->validate = validate;
        rdl->complete = complete;
        rdl->help = help;
-       rdl->status = RDLINE_INIT;
+       rdl->status = RDLINE_STOPPED;
 #ifndef NO_RDLINE_HISTORY
        cirbuf_init(&rdl->history, rdl->history_buf, 0, RDLINE_HISTORY_BUF_SIZE);
 #endif /* !NO_RDLINE_HISTORY */
@@ -135,7 +135,7 @@ rdline_newline(struct rdline *rdl, const char *prompt)
 void
 rdline_stop(struct rdline *rdl)
 {
-       rdl->status = RDLINE_INIT;
+       rdl->status = RDLINE_STOPPED;
 }
 
 void
@@ -499,7 +499,6 @@ rdline_parse_char(struct rdline *rdl, char c)
                        }
 
                        rdline_asyncpager_reset(rdl);
-                       rdl->status = RDLINE_INIT;
 #else
                        if (rdl->status == RDLINE_EXITED)
                                return RDLINE_RES_EXITED;