summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-15 02:26:48 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-15 02:28:57 +0200
commit0114d57a0c409fa80dc497ea9b6e59db969b4ec2 (patch)
tree35ebd2958d5d8d5daa8ec2cf6ba1bf7d075f031a
parent4a0c774e75dc610100b0a068cb569513c6b4e4cd (diff)
downloadxK-0114d57a0c409fa80dc497ea9b6e59db969b4ec2.tar.gz
xK-0114d57a0c409fa80dc497ea9b6e59db969b4ec2.tar.xz
xK-0114d57a0c409fa80dc497ea9b6e59db969b4ec2.zip
degesch: fix Travis CI build (hopefully)
-rw-r--r--degesch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 1b2e817..989c239 100644
--- a/degesch.c
+++ b/degesch.c
@@ -802,6 +802,9 @@ buffer_remove (struct app_context *ctx, struct buffer *buffer)
{
hard_assert (buffer != ctx->current_buffer);
+ // rl_clear_history, being the only way I know of to get rid of the complete
+ // history including attached data, is a pretty recent addition. *sigh*
+#if RL_READLINE_VERSION >= 0x0603
if (buffer->history)
{
// See buffer_activate() for why we need to do this BS
@@ -816,6 +819,7 @@ buffer_remove (struct app_context *ctx, struct buffer *buffer)
history_set_history_state (state);
free (state);
}
+#endif // RL_READLINE_VERSION
str_map_set (&ctx->buffers_by_name, buffer->name, NULL);
LIST_UNLINK_WITH_TAIL (ctx->buffers, ctx->buffers_tail, buffer);