pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d697dc5
)
fixed missing color check
author
Michael Göhler
<github@nixhub.de>
Sun, 20 Mar 2016 11:18:18 +0000
(12:18 +0100)
committer
Michael Göhler
<github@nixhub.de>
Sun, 20 Mar 2016 11:18:18 +0000
(12:18 +0100)
src/viewer.c
patch
|
blob
|
history
diff --git
a/src/viewer.c
b/src/viewer.c
index
c23dc40
..
d106a62
100644
(file)
--- a/
src/viewer.c
+++ b/
src/viewer.c
@@
-520,7
+520,8
@@
void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo
// fill rest off line with spaces if we are in a code block
if(CHECK_BIT(line->bits, IS_CODE) && colors) {
- wattron(window, COLOR_PAIR(CP_BLACK));
+ if(colors)
+ wattron(window, COLOR_PAIR(CP_BLACK));
for(i = getcurx(window) - x; i < max_cols; i++)
wprintw(window, "%s", " ");
}