aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-09-01 18:58:11 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-09-01 19:02:41 +0200
commitb7c9bfd9f5ab2f0b7b95d02c873b238873617b70 (patch)
tree54bf1be02d756b06395f504b83636a581e17930d
parentf6165164eee4e699966ba9bc1cab1e58e69317c8 (diff)
downloadjson-rpc-shell-b7c9bfd9f5ab2f0b7b95d02c873b238873617b70.tar.gz
json-rpc-shell-b7c9bfd9f5ab2f0b7b95d02c873b238873617b70.tar.xz
json-rpc-shell-b7c9bfd9f5ab2f0b7b95d02c873b238873617b70.zip
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.
-rw-r--r--json-rpc-shell.c3
1 files changed, 2 insertions, 1 deletions
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 *