From d2fc31c1f5458db55941c531d7270ae70979f864 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Thu, 6 Nov 2014 23:56:50 +0100 Subject: [PATCH] removed duplicated expression --- src/viewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer.c b/src/viewer.c index 574c3a0..b9dcbf7 100644 --- 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) { -- 2.20.1