From a3d9a0cc14a6c55cb62e808b1c43d3b7a487faf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Fri, 19 Sep 2014 00:14:00 +0200 Subject: [PATCH] also remove backslash from stack if next char is not special --- viewer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/viewer.c b/viewer.c index ba76f2f..6db88b9 100644 --- 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); } -- 2.20.1