diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-13 23:41:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-13 23:41:22 +0100 |
commit | c9c51d50a53f8286bbbe3306e02b78f6a7c2b94c (patch) | |
tree | f3afb7504413e107c17640472690f8449771db24 /src/lua | |
parent | 57d60a6c7974da4604a2158c407c25251f070d7d (diff) | |
download | rspamd-c9c51d50a53f8286bbbe3306e02b78f6a7c2b94c.tar.gz rspamd-c9c51d50a53f8286bbbe3306e02b78f6a7c2b94c.zip |
[Minor] Try to add workaround for replxx usage with no history
Issue: #4133
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |