fix more color breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2862 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
47a153f538
commit
fa82853aea
|
@ -129,12 +129,11 @@ void color_update(void)
|
||||||
if (openfile->colorstrings == NULL && syntaxstr != NULL) {
|
if (openfile->colorstrings == NULL && syntaxstr != NULL) {
|
||||||
for (tmpsyntax = syntaxes; tmpsyntax != NULL;
|
for (tmpsyntax = syntaxes; tmpsyntax != NULL;
|
||||||
tmpsyntax = tmpsyntax->next) {
|
tmpsyntax = tmpsyntax->next) {
|
||||||
if (mbstrcasecmp(tmpsyntax->desc, syntaxstr) == 0) {
|
if (mbstrcasecmp(tmpsyntax->desc, syntaxstr) == 0)
|
||||||
openfile->colorstrings = tmpsyntax->color;
|
openfile->colorstrings = tmpsyntax->color;
|
||||||
|
|
||||||
if (openfile->colorstrings != NULL)
|
if (openfile->colorstrings != NULL)
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue