From fa82853aea8a581b6b9ffd088f710a852f444a8d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 14 Jul 2005 22:28:22 +0000 Subject: [PATCH] fix more color breakage git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2862 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/color.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } } -- 2.39.5