]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Try to add workaround for replxx usage with no history
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 13 Jun 2022 22:41:22 +0000 (23:41 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 13 Jun 2022 22:41:22 +0000 (23:41 +0100)
Issue: #4133

src/lua/lua_util.c

index 742c6377ae4b5e237c11c8f14944d0ee2d7653f6..8f53e377dea33480b6fe3fbad9e776868375cd28 100644 (file)
@@ -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);