From: Vsevolod Stakhov Date: Mon, 13 Jun 2022 22:41:22 +0000 (+0100) Subject: [Minor] Try to add workaround for replxx usage with no history X-Git-Tag: 3.3~195 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c9c51d50a53f8286bbbe3306e02b78f6a7c2b94c;p=rspamd.git [Minor] Try to add workaround for replxx usage with no history Issue: #4133 --- 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);