]> git.wh0rd.org Git - nano.git/commitdiff
fix more color breakage
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 14 Jul 2005 22:28:22 +0000 (22:28 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 14 Jul 2005 22:28:22 +0000 (22:28 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2862 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/color.c

index 718110df2940f211d2a9ba9f443abc936a82aa89..ccc7a6979804feb4bce33a2640f9d86a82094b7c 100644 (file)
@@ -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;
        }
     }