Fix path to Syntax file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-06-12 14:36:30 +03:00 committed by Andrew Borodin
parent 0791b5b200
commit e335712e41
1 changed files with 6 additions and 1 deletions

View File

@ -814,7 +814,12 @@ edit_load_syntax_file (WEdit * edit)
_(" Which syntax file you want to edit? "), D_NORMAL, 2,
_("&User"), _("&System Wide"));
}
extdir = concat_dir_and_file (mc_home_alt, "syntax" PATH_SEP_STR "Syntax");
extdir = concat_dir_and_file (mc_home, "syntax" PATH_SEP_STR "Syntax");
if (!exist_file(extdir)) {
g_free (extdir);
extdir = concat_dir_and_file (mc_home_alt, "syntax" PATH_SEP_STR "Syntax");
}
if (dir == 0) {
char *buffer;