immediate_writing

This commit is contained in:
Vitor Santos Costa 2017-10-27 13:55:34 +01:00
parent 75f5937e2b
commit 2e6684b995

View File

@ -342,6 +342,7 @@ static bool getLine(int inp) {
return false;
if (myrl_line[0] != '\0' && myrl_line[1] != '\0') {
add_history((char *)myrl_line);
write_history(history_file);
fflush(NULL);
}
s->u.irl.ptr = s->u.irl.buf = myrl_line;