degesch: fix Travis CI build

This commit is contained in:
Přemysl Eric Janouch 2015-04-15 02:40:11 +02:00
parent 0114d57a0c
commit 92ca2df285

View File

@ -872,7 +872,12 @@ buffer_activate (struct app_context *ctx, struct buffer *buffer)
}
else
// Just throw it away; there should always be an active buffer however
#if RL_READLINE_VERSION >= 0x0603
rl_clear_history ();
#else // RL_READLINE_VERSION < 0x0603
// At least something... this may leak undo entries
clear_history ();
#endif // RL_READLINE_VERSION < 0x0603
// Now at last we can switch the pointers
ctx->current_buffer = buffer;