mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
* syntax.c (open_include_file) [GTK]: Use mc_home instead of
LIBDIR.
This commit is contained in:
parent
2e136f7ec9
commit
72d0112151
@ -1,3 +1,8 @@
|
||||
2001-07-20 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* syntax.c (open_include_file) [GTK]: Use mc_home instead of
|
||||
LIBDIR.
|
||||
|
||||
2001-07-19 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* editcmd.c (edit_canonicalize_pathname): Don't ever use
|
||||
|
@ -597,6 +597,8 @@ int this_allocate_color (WEdit *edit, char *fg)
|
||||
|
||||
static char *error_file_name = 0;
|
||||
|
||||
extern char *mc_home;
|
||||
|
||||
static FILE *open_include_file (char *filename)
|
||||
{
|
||||
FILE *f;
|
||||
@ -613,12 +615,12 @@ static FILE *open_include_file (char *filename)
|
||||
f = fopen (p, "r");
|
||||
if (f)
|
||||
return f;
|
||||
#ifndef MIDNIGHT
|
||||
#if !defined (MIDNIGHT) && !defined(GTK)
|
||||
strcpy (p, LIBDIR "/syntax/");
|
||||
#else
|
||||
strcpy (p, mc_home);
|
||||
strcat (p, "/syntax/");
|
||||
#endif
|
||||
#endif /* MIDNIGHT || GTK */
|
||||
strcat (p, filename);
|
||||
syntax_free (error_file_name);
|
||||
error_file_name = (char *) strdup (p);
|
||||
|
Loading…
Reference in New Issue
Block a user