pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc94ace
)
do not print unmatched backslashes at eol
author
Michael Göhler
<somebody.here@gmx.de>
Mon, 15 Sep 2014 19:04:35 +0000
(21:04 +0200)
committer
Michael Göhler
<somebody.here@gmx.de>
Mon, 15 Sep 2014 19:04:35 +0000
(21:04 +0200)
viewer.c
patch
|
blob
|
history
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)) {
- case '\\':
- wprintw(window, "%c", '\\');
- break;
// 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;
+ // do nothing for backslashes
}
}
}