fix redline to send history at the very end

This commit is contained in:
Vitor Santos Costa 2016-04-22 18:22:17 +01:00
parent 445a7f33c1
commit 768b17751b

View File

@ -473,12 +473,6 @@ int Yap_ReadlineForSIGINT(void) {
}
}
void Yap_CloseReadline(void) {
#if USE_READLINE
write_history(history_file);
#endif
}
static Int has_readline(USES_REGS1) {
#if USE_READLINE
return true;
@ -501,3 +495,9 @@ bool Yap_InitReadline(Term enable) {
void Yap_InitReadlinePreds(void) {}
#endif
void Yap_CloseReadline(void) {
#if USE_READLINE
write_history(history_file);
#endif
}