Merge pull request #672 from JLarky/fix--stdout-buffer

do fflush instead of readline when readline is disabled.
This commit is contained in:
vysheng 2015-07-07 19:06:09 +03:00
commit 524ab24e88

View File

@ -560,7 +560,10 @@ void set_prompt (const char *s) {
}
void update_prompt (void) {
if (readline_disabled) { return; }
if (readline_disabled) {
fflush (stdout);
return;
}
if (read_one_string) { return; }
print_start ();
set_prompt (get_default_prompt ());