From: Michael Göhler Date: Thu, 18 Sep 2014 22:14:00 +0000 (+0200) Subject: also remove backslash from stack if next char is not special X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=commitdiff_plain;h=a3d9a0cc14a6c55cb62e808b1c43d3b7a487faf1 also remove backslash from stack if next char is not special --- 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); }