1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
hnb (1.9.18-8) * Make drawing the cursor independent from *data, this eases
adding wide character support to hnb. Since we don't have
full wide-character support yet, this patch uses addch() and
inch() instead of add_wch() and in_wch().
--- hnb.orig/src/ui_draw.c
+++ hnb/src/ui_draw.c
@@ -249,7 +249,7 @@ static int draw_textblock (int line_star
} else {
ui_style (ui_style_selected);
}
- addch (data[cursor_pos]);
+ addch(A_CHARTEXT & inch());
if (node_right (node)) {
ui_style (ui_style_parentnode);
} else {
|