Re: symlinks for directories: colors



On Tue, 21 Jan 2003, Pavel Roskin wrote:

On Tue, 21 Jan 2003, [ISO-8859-1] Frédéric L. W. Meunier wrote:

Is there any way to threat symlinks for directories like "link"
instead of "directory" ?

Only by changing the code.  Comment out this code in screen.c:

    if (fe->f.link_to_dir)
        return (DIRECTORY_COLOR);

Commenting out / removing didn't work.

/g/Linux/mc/src/screen.c: In function `file_compute_color':
/g/Linux/mc/src/screen.c:485: parse error before `else'

I changed it to return (LINK_COLOR)

-- 
0 pervalidus {net, {dyndns.}org}



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