From: David Lawrence Ramsey Date: Thu, 14 Jul 2005 22:28:22 +0000 (+0000) Subject: fix more color breakage X-Git-Tag: v1.3.9~184 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fa82853aea8a581b6b9ffd088f710a852f444a8d;p=nano.git fix more color breakage git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2862 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/color.c b/src/color.c index 718110df..ccc7a697 100644 --- a/src/color.c +++ b/src/color.c @@ -129,12 +129,11 @@ void color_update(void) if (openfile->colorstrings == NULL && syntaxstr != NULL) { for (tmpsyntax = syntaxes; tmpsyntax != NULL; tmpsyntax = tmpsyntax->next) { - if (mbstrcasecmp(tmpsyntax->desc, syntaxstr) == 0) { + if (mbstrcasecmp(tmpsyntax->desc, syntaxstr) == 0) openfile->colorstrings = tmpsyntax->color; - if (openfile->colorstrings != NULL) - break; - } + if (openfile->colorstrings != NULL) + break; } }