From 100de5ac2d31221e5a8ef76c5cf0d2c0af3696ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 24 Jul 2023 07:58:59 +0200 Subject: xC: fix Readline 6.3 compatibility --- xC.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xC.c b/xC.c index 5d3eb67..a589836 100644 --- a/xC.c +++ b/xC.c @@ -616,7 +616,7 @@ input_rl_buffer_add_history (void *input, input_buffer_t input_buffer, // or temporarily switch histories. if (!buffer->history) { - bool at_end = history_offset == history_length; + bool at_end = where_history () == history_length; add_history (line); if (at_end) next_history (); -- cgit v1.2.3