diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-07-24 07:58:59 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-07-24 07:59:22 +0200 |
commit | 100de5ac2d31221e5a8ef76c5cf0d2c0af3696ce (patch) | |
tree | 93f3be4b01d5228ef871cd75b3b34aac008115ec | |
parent | c157d3369fd9fcd2ad314fe79960b647ff3a46a7 (diff) | |
download | xK-100de5ac2d31221e5a8ef76c5cf0d2c0af3696ce.tar.gz xK-100de5ac2d31221e5a8ef76c5cf0d2c0af3696ce.tar.xz xK-100de5ac2d31221e5a8ef76c5cf0d2c0af3696ce.zip |
xC: fix Readline 6.3 compatibility
-rw-r--r-- | xC.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 (); |