From b7c9bfd9f5ab2f0b7b95d02c873b238873617b70 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 1 Sep 2020 18:58:11 +0200 Subject: Fix libedit crash Again, I have no idea why it started to happen, it just occured to me to try to change the call, and it turns out out it works. --- json-rpc-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/json-rpc-shell.c b/json-rpc-shell.c index cbacff8..b11ce8c 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -531,7 +531,8 @@ input_el_redisplay (struct input_el *self) el_push (self->editline, x); // We have to do this or it gets stuck and nothing is done - (void) el_gets (self->editline, NULL); + int count = 0; + (void) el_wgets (self->editline, &count); } static char * -- cgit v1.2.3-70-g09d2