visible tabs and trailing spaces

Oswald Buddenhagen ossi at kde.org
Sun Feb 13 16:55:49 UTC 2005


On Sun, Feb 13, 2005 at 12:56:26PM +0100, Oswald Buddenhagen wrote:
> +++ edit/editdraw.c	13 Feb 2005 11:40:35 -0000
> +		if (color == EDITOR_NORMAL_COLOR)
>
fwiw, this test sucks, because it disables visible whitespace in any
syntax-highlitet text. what we really need to find out is, whether the
physical background color matches.
so if somebody understands how the palette works and can come up with a
fast comparison ...

> +		    set_color (EDITOR_WHITESPACE_COLOR);
> +		else {
> +		    textchar = ' ';
> +		    lowlevel_set_color (color);
> +		}

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.



More information about the mc-devel mailing list