pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5507e5
)
also remove backslash from stack if next char is not special
author
Michael Göhler
<somebody.here@gmx.de>
Thu, 18 Sep 2014 22:14:00 +0000
(
00:14
+0200)
committer
Michael Göhler
<somebody.here@gmx.de>
Thu, 18 Sep 2014 22:14:00 +0000
(
00:14
+0200)
viewer.c
patch
|
blob
|
history
diff --git
a/viewer.c
b/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);
}