[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.
Benno
--
http://www.fastmail.com - Email service worth paying for. Try it for free
- [Nano-devel] streamlining a bit of syntax coloring,
Benno Schulenberg <=
- Re: [Nano-devel] streamlining a bit of syntax coloring, Rishabh Dave, 2016/07/14
- Re: [Nano-devel] streamlining a bit of syntax coloring, Benno Schulenberg, 2016/07/14
- Re: [Nano-devel] streamlining a bit of syntax coloring, Rishabh Dave, 2016/07/16
- Re: [Nano-devel] streamlining a bit of syntax coloring, Benno Schulenberg, 2016/07/17
- Re: [Nano-devel] streamlining a bit of syntax coloring, Rishabh Dave, 2016/07/17
- Re: [Nano-devel] streamlining a bit of syntax coloring, Benno Schulenberg, 2016/07/17
- Re: [Nano-devel] streamlining a bit of syntax coloring, Rishabh Dave, 2016/07/18
- Re: [Nano-devel] streamlining a bit of syntax coloring, Benno Schulenberg, 2016/07/21