sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit 1d4e10d31db0e0c0d90bd2fbec0cdc3298c4e5fd
parent de4b647005d500d15e520648d9e10317c185f1be
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Tue, 31 May 2011 01:39:32 +0200

Cosmetic settings in config.h now controlled with two simple defines. TODO: cleanup config.h a bit
Diffstat:
config.def.h | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -2,6 +2,10 @@ static const bool isutf8 = TRUE; static const char fifobase[] = "/tmp/sandyfifo."; +/* Some cosmetic settings */ +#define HLCUR 0 +#define SHOW_SPECIAL 0 + /* TAB and Space character aspect on screen */ static int tabstop = 8; /* Not const, as it may be changed via param */ #if SHOW_SPECIAL @@ -239,7 +243,11 @@ static Syntax syntaxes[] = { /* Colors */ static const short fgcolors[LastFG] = { [DefFG] = -1, +#if HLCUR [CurFG] = COLOR_BLACK, +#else + [CurFG] = -1, +#endif [SelFG] = COLOR_BLACK, [SpcFG] = COLOR_WHITE, [CtrlFG] = COLOR_RED, @@ -287,7 +295,11 @@ static const int bwattrs[LastFG] = { static const short bgcolors[LastBG] = { [DefBG] = -1, +#if HLCUR [CurBG] = COLOR_CYAN, +#else + [CurBG] = -1, +#endif [SelBG] = COLOR_YELLOW, };