On 12/03/2020 01:53, Valery Ushakov wrote:
On Wed, Mar 11, 2020 at 23:47:40 +0000, Roy Marples wrote:

Module Name:    src
Committed By:   roy
Date:           Wed Mar 11 23:47:40 UTC 2020

Modified Files:
        src/lib/libcurses: erase.c

Log Message:
curses: Fix werase(3) wide character support

We need to consider erasing all attributes, not just WA_ATTRIBUTES.
Fixes PR lib/23910.

While here, make the function a little more readable.

Do we need the same change in wclrtoeol()?

Actually no, that code looks correct and my initial fix was slightly wrong.
Still, I've now normalised the change with wclrtoeol and wclrtobot as well.
All 3 now have the same code, maybe we should consider adding it a macro to save future headaches?

Roy

Reply via email to