mirror of
https://github.com/Dushistov/sdcv.git
synced 2026-03-25 21:40:25 +00:00
Keep searching in $HOME
This commit is contained in:
@@ -68,8 +68,12 @@ std::string get_hist_file_path()
|
||||
|
||||
if (hist_file_str != nullptr)
|
||||
return std::string(hist_file_str);
|
||||
else
|
||||
return std::string(g_get_user_data_dir()) + G_DIR_SEPARATOR + "sdcv_history";
|
||||
|
||||
const std::string hist_file_path = std::string(g_get_home_dir()) + G_DIR_SEPARATOR + ".sdcv_history";
|
||||
if (g_file_test(hist_file_path.c_str(), G_FILE_TEST_IS_REGULAR))
|
||||
return hist_file_path;
|
||||
|
||||
return std::string(g_get_user_data_dir()) + G_DIR_SEPARATOR + "sdcv_history";
|
||||
}
|
||||
|
||||
class real_readline : public IReadLine
|
||||
|
||||
Reference in New Issue
Block a user