From c308f38cea30a77a7cadf8f4353193c794e826c9 Mon Sep 17 00:00:00 2001 From: Timofey Khoruzhii Date: Thu, 11 Aug 2022 21:50:43 +0300 Subject: [PATCH] Fix replace new config in file --- src/clippy/project_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clippy/project_list.cpp b/src/clippy/project_list.cpp index 2e20ec7..e2ad9f3 100644 --- a/src/clippy/project_list.cpp +++ b/src/clippy/project_list.cpp @@ -53,7 +53,7 @@ Config ProjectList::GetNewConfig( auto path_to_config = config_directory / filename; - std::ofstream out(path_, std::ios::ate); + std::ofstream out(path_, std::ios::app); out << std::filesystem::current_path() << " " << path_to_config << std::endl; out.close();