immediate_writing
This commit is contained in:
parent
75f5937e2b
commit
2e6684b995
@ -342,6 +342,7 @@ static bool getLine(int inp) {
|
|||||||
return false;
|
return false;
|
||||||
if (myrl_line[0] != '\0' && myrl_line[1] != '\0') {
|
if (myrl_line[0] != '\0' && myrl_line[1] != '\0') {
|
||||||
add_history((char *)myrl_line);
|
add_history((char *)myrl_line);
|
||||||
|
write_history(history_file);
|
||||||
fflush(NULL);
|
fflush(NULL);
|
||||||
}
|
}
|
||||||
s->u.irl.ptr = s->u.irl.buf = myrl_line;
|
s->u.irl.ptr = s->u.irl.buf = myrl_line;
|
||||||
|
Reference in New Issue
Block a user