aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-09-02 19:11:10 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-09-02 20:00:10 +0200
commited7130a66455bdea1fff02099ef5ed62fa695c34 (patch)
tree457a5b53959451ead9073e89d5e69137ebb4fd3d
parentba1c2357af62a61e8084d77783868a10815b8556 (diff)
downloadxK-ed7130a66455bdea1fff02099ef5ed62fa695c34.tar.gz
xK-ed7130a66455bdea1fff02099ef5ed62fa695c34.tar.xz
xK-ed7130a66455bdea1fff02099ef5ed62fa695c34.zip
degesch: fix a libedit crash
-rw-r--r--degesch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index 5ba7a42..0a24d10 100644
--- a/degesch.c
+++ b/degesch.c
@@ -789,7 +789,8 @@ input_el__redisplay (void *input)
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 *