pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not print unmatched backslashes at eol
[smdp.git]
/
viewer.c
diff --git
a/viewer.c
b/viewer.c
index
cede301
..
c4e6b90
100644
(file)
--- a/
viewer.c
+++ b/
viewer.c
@@
-440,9
+440,6
@@
void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols) {
// pop stack until empty to prevent formated trailing spaces
while(!(stack->empty)(stack)) {
switch((stack->pop)(stack)) {
// pop stack until empty to prevent formated trailing spaces
while(!(stack->empty)(stack)) {
switch((stack->pop)(stack)) {
- case '\\':
- wprintw(window, "%c", '\\');
- break;
// disable highlight
case '*':
wattron(window, COLOR_PAIR(CP_WHITE));
// disable highlight
case '*':
wattron(window, COLOR_PAIR(CP_WHITE));
@@
-451,6
+448,7
@@
void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols) {
case '_':
wattroff(window, A_UNDERLINE);
break;
case '_':
wattroff(window, A_UNDERLINE);
break;
+ // do nothing for backslashes
}
}
}
}
}
}