compiling against ncursesw to display UTF-8 chars correctly, fixes #19
[smdp.git] / viewer.c
index ba76f2f..6db88b9 100644 (file)
--- a/viewer.c
+++ b/viewer.c
@@ -472,6 +472,10 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo
                         }
 
                     } else {
+                        // remove backslash from stack
+                        if((stack->top)(stack, '\\'))
+                            (stack->pop)(stack);
+
                         // print regular char
                         wprintw(window, "%c", *c);
                     }