[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] streamlining a bit of syntax coloring

From: Benno Schulenberg
Subject: [Nano-devel] streamlining a bit of syntax coloring
Date: Tue, 12 Jul 2016 10:23:26 +0200

Hello Rishabh,

If you'd like another small task, here is one.

Change things so that instead of:

           if (varnish->bright)
               wattron(edit, A_BOLD);
           wattron(edit, COLOR_PAIR(varnish->pairnum));

just this is needed:

           wattron(edit, varnish->attributes);

and instead of:

           wattroff(edit, A_BOLD);
           wattroff(edit, COLOR_PAIR(varnish->pairnum));

just this:

           wattroff(edit, varnish->attributes);

Besides those changes, the patch should not add more than
four extra lines.


-- - Email service worth paying for. Try it for free

reply via email to

[Prev in Thread] Current Thread [Next in Thread]