From c79f3e9fb527df07f955ac8315c62b110df5a42d Mon Sep 17 00:00:00 2001
From: Mooffie <mooffie@gmail.com>
Date: Thu, 8 Sep 2016 14:22:39 +0300
Subject: [PATCH] Store the 'hotlist' file in data dir, not config dir.
---
lib/mcconfig/paths.c | 4 +++-
tests/lib/mcconfig/user_configs_path.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/mcconfig/paths.c b/lib/mcconfig/paths.c
index 4e2f2c5..13f1da3 100644
a
|
b
|
static const struct |
69 | 69 | /* config */ |
70 | 70 | { "ini", &mc_config_str, MC_CONFIG_FILE}, |
71 | 71 | { "filehighlight.ini", &mc_config_str, MC_FHL_INI_FILE}, |
72 | | { "hotlist", &mc_config_str, MC_HOTLIST_FILE}, |
73 | 72 | { "mc.keymap", &mc_config_str, GLOBAL_KEYMAP_FILE}, |
74 | 73 | { "menu", &mc_config_str, MC_USERMENU_FILE}, |
75 | 74 | { "cedit" PATH_SEP_STR "Syntax", &mc_config_str, EDIT_SYNTAX_FILE}, |
… |
… |
static const struct |
90 | 89 | { "extfs.d", &mc_data_str, MC_EXTFS_DIR}, |
91 | 90 | { "history", &mc_data_str, MC_HISTORY_FILE}, |
92 | 91 | { "filepos", &mc_data_str, MC_FILEPOS_FILE}, |
| 92 | { "hotlist", &mc_data_str, MC_HOTLIST_FILE}, |
93 | 93 | { "cedit" PATH_SEP_STR "cooledit.clip", &mc_data_str, EDIT_CLIP_FILE}, |
94 | 94 | { "", &mc_data_str, MC_MACRO_FILE}, |
95 | 95 | |
… |
… |
static const struct |
113 | 113 | } mc_config_migrate_rules_fix[] = |
114 | 114 | { |
115 | 115 | /* *INDENT-OFF* */ |
| 116 | { &mc_config_str, MC_HOTLIST_FILE, &mc_data_str}, |
| 117 | |
116 | 118 | { &mc_data_str, MC_USERMENU_FILE, &mc_config_str}, |
117 | 119 | { &mc_data_str, EDIT_SYNTAX_FILE, &mc_config_str}, |
118 | 120 | { &mc_data_str, EDIT_HOME_MENU, &mc_config_str}, |
diff --git a/tests/lib/mcconfig/user_configs_path.c b/tests/lib/mcconfig/user_configs_path.c
index c56a7d8..b0a59e5 100644
a
|
b
|
static const struct test_user_config_paths_ds |
93 | 93 | MC_FHL_INI_FILE |
94 | 94 | }, |
95 | 95 | { /* 2. */ |
96 | | CONF_MAIN, |
| 96 | CONF_DATA, |
97 | 97 | MC_HOTLIST_FILE |
98 | 98 | }, |
99 | 99 | { /* 3. */ |