Hi,
From: YASUOKA Masahiko <[email protected]>
Date: Wed, 10 Oct 2018 13:46:10 +0900 (JST)
> initialize new line.
>
> See #1086, "lastline" is set to previous lastline. Then new line is not
> initialized.
>
> I think the following diff is better since it initializes the line in
> the same way for first line.
>
> diff --git a/lib/libedit/refresh.c b/lib/libedit/refresh.c
> index f2d001d67cb..9bf46faa777 100644
> --- a/lib/libedit/refresh.c
> +++ b/lib/libedit/refresh.c
> @@ -1083,7 +1083,7 @@ re_fastputc(EditLine *el, wint_t c)
> el->el_display[i - 1] = lastline;
> } else {
> el->el_cursor.v++;
> - lastline = el->el_display[el->el_refresh.r_oldcv++];
> + lastline = el->el_display[++el->el_refresh.r_oldcv];
> }
> re__copy_and_pad(lastline, L"", el->el_terminal.t_size.h);
>
I confirmed this patch. I think that this patch is more crrect then my
patch.
thanks.
--
ASOU Masato