From c9c51d50a53f8286bbbe3306e02b78f6a7c2b94c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 Jun 2022 23:41:22 +0100 Subject: [PATCH] [Minor] Try to add workaround for replxx usage with no history Issue: #4133 --- src/lua/lua_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 742c6377a..8f53e377d 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -2469,6 +2469,8 @@ lua_util_readline (lua_State *L) if (rx_instance == NULL) { rx_instance = replxx_init (); + /* See https://github.com/AmokHuginnsson/replxx/issues/137 */ + replxx_history_add(rx_instance, ""); } input = (gchar *)replxx_input (rx_instance, prompt); -- 2.39.5