From 92ca2df2858fc852fa13e0463c1593fa8269a037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Wed, 15 Apr 2015 02:40:11 +0200 Subject: [PATCH] degesch: fix Travis CI build --- degesch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/degesch.c b/degesch.c index 989c239..b1662ca 100644 --- a/degesch.c +++ b/degesch.c @@ -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;