diff options
author | Benji Nguyen <45523555+solidiquis@users.noreply.github.com> | 2023-07-02 09:07:47 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 09:07:47 +0700 |
commit | 94e65de18a05e2b5eb4d3e7c1a9a911bfd2af297 (patch) | |
tree | 673411dbe965ef577b3bc1fd452f520837b898ec | |
parent | ccdb8184232468551e82eacc98857d3393a6d966 (diff) | |
parent | d7b2b1bc5a9ec1dc9ec6039677f60d0d5c8b8720 (diff) |
Merge pull request #218 from adam-frisby/win_toml_suffix
Fix loading .erdtree.toml on Windows
-rw-r--r-- | src/context/config/toml/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context/config/toml/mod.rs b/src/context/config/toml/mod.rs index 002580b..0eb9858 100644 --- a/src/context/config/toml/mod.rs +++ b/src/context/config/toml/mod.rs @@ -215,7 +215,7 @@ mod windows { .join(ERDTREE_DIR) .join(ERDTREE_CONFIG_TOML) .to_str() - .and_then(|s| s.strip_prefix(".toml")) + .and_then(|s| s.strip_suffix(".toml")) .map(File::with_name)?; Config::builder().add_source(file).build().ok() |