fix more color breakage

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2862 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-07-14 22:28:22 +00:00
parent 47a153f538
commit fa82853aea
1 changed files with 3 additions and 4 deletions

View 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;
}
}