Change policy for adding input to readline history.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
bd3b422158
commit
aceae7a1b2
1 changed files with 2 additions and 3 deletions
|
@ -1176,10 +1176,9 @@ bool parse_commands_from_stdin(frontend & fe) {
|
|||
input = readline("# ");
|
||||
if (!input)
|
||||
return errors;
|
||||
add_history(input);
|
||||
std::istringstream strm(input);
|
||||
if (parse_commands(fe, strm, false, false))
|
||||
add_history(input);
|
||||
else
|
||||
if (!parse_commands(fe, strm, false, false))
|
||||
errors = true;
|
||||
free(input);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue