pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b0a025
)
removed duplicated expression
author
Michael Göhler
<somebody.here@gmx.de>
Thu, 6 Nov 2014 22:56:50 +0000
(23:56 +0100)
committer
Michael Göhler
<somebody.here@gmx.de>
Thu, 6 Nov 2014 22:56:50 +0000
(23:56 +0100)
src/viewer.c
patch
|
blob
|
history
diff --git
a/src/viewer.c
b/src/viewer.c
index
574c3a0
..
b9dcbf7
100644
(file)
--- a/
src/viewer.c
+++ b/
src/viewer.c
@@
-615,7
+615,7
@@
void inline_display(WINDOW *window, const char *c, const int colors) {
//TODO this condition looks ugly
if(i == c ||
*(i - 1) == ' ' ||
- ((
i + 1 > c) && (*(i - 1) == '_' || *(i - 1) == '*') && (*(i - 2) == ' ' || (i - 1) == c
)) ||
+ ((
*(i - 1) == '_' || *(i - 1) == '*') && ((i - 1) == c || *(i - 2) == ' '
)) ||
*i == '\\') {
switch(*i) {