From 9d5e57a501f37661ca533c9c3774dce186694010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Mon, 29 Aug 2022 08:31:11 +0200 Subject: [PATCH] xC: improve libedit multiline input handling --- xC.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xC.c b/xC.c index d6c82b7..2de5c92 100644 --- a/xC.c +++ b/xC.c @@ -1034,6 +1034,10 @@ static void input_el__bottom (struct input_el *self) { // First, we need to redirect output to avoid ringing the terminal bell. + // Assuming that the line has just been erased but not redisplayed + // by caller, we need to CC_REFRESH first. + input_el__redisplay (self); + FILE *out = NULL; el_wget (self->editline, EL_GETFP, 1, &out); el_wset (self->editline, EL_SETFP, 1, self->null);