nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit fa82853aea8a581b6b9ffd088f710a852f444a8d
parent 47a153f538fbfa31dcb24192368e07bd8d11d0ef
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Thu, 14 Jul 2005 22:28:22 +0000

fix more color breakage


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2862 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/color.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 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; } }