/*** END ***/ The problem is, ptwo tries to split the wide-character in displayed in pone. I have attached a very small screenshot (q.png) which makes the problem apparent.
I tried to come up with a patch, and I got: --- ncurses/base/lib_refresh.c +++ ncurses/base/lib_refresh.c @@ -150,7 +150,19 @@ if (last > limit_x) last = limit_x;
- for (j = oline->firstchar, n = j + begx; j <= last; j++, n++) { + j = oline->firstchar; + n = j + begx; + if (j <= last && n && isWidecExt(nline->text[n-1])) {
+ /* It's a multicolumn character. Replace with a space. */ +#if 0 + NCURSES_CH_T blank = NewChar(BLANK_TEXT); + nline->text[n-1] = blank; +#else + nline->text[n-1].chars[0] = ' ';
+#endif + CHANGED_CELL(nline, n-1); + } + for (; j <= last; j++, n++) { if (!CharEq(oline->text[j], nline->text[n])) { nline->text[n] = oline->text[j];
CHANGED_CELL(nline, n);
It did seem to work (by replacing the wide-character by a space to make sure it doesn't get displayed at all). However, if I bring up pone again (using top_panel), the wide-character remains invisible. So I think this probably is not the best fix. Is there any other fix I should try?