From 7985724933a33ba5f57b266bb282cedf0dacb5b4 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 27 Aug 2015 21:45:02 -0300 Subject: Fixes for color glitches in ncurses ABI6. Could no longer reproduce #244 after these fixes. --- RichString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RichString.h') diff --git a/RichString.h b/RichString.h index 741c84ae..04e468d9 100644 --- a/RichString.h +++ b/RichString.h @@ -42,7 +42,7 @@ in the source distribution for its full text. #define RichString_printVal(this, y, x) mvadd_wchstr(y, x, (this).chptr) #define RichString_printoffnVal(this, y, x, off, n) mvadd_wchnstr(y, x, (this).chptr + off, n) #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255) -#define RichString_setChar(this, at, ch) do{ (this)->chptr[(at)].chars[0] = ch; } while(0) +#define RichString_setChar(this, at, ch) do{ (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while(0) #define CharType cchar_t #else #define RichString_printVal(this, y, x) mvaddchstr(y, x, (this).chptr) -- cgit v1.2.3