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.
This commit is contained in:
Přemysl Eric Janouch 2020-09-01 18:58:11 +02:00
parent f6165164ee
commit b7c9bfd9f5
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -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 *