also remove backslash from stack if next char is not special
authorMichael Göhler <somebody.here@gmx.de>
Thu, 18 Sep 2014 22:14:00 +0000 (00:14 +0200)
committerMichael Göhler <somebody.here@gmx.de>
Thu, 18 Sep 2014 22:14:00 +0000 (00:14 +0200)
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);
                     }