diff options
author | Adam Frisby <pix64@users.noreply.github.com> | 2023-07-01 12:57:18 -0400 |
---|---|---|
committer | Adam Frisby <pix64@users.noreply.github.com> | 2023-07-01 12:57:18 -0400 |
commit | d7b2b1bc5a9ec1dc9ec6039677f60d0d5c8b8720 (patch) | |
tree | 673411dbe965ef577b3bc1fd452f520837b898ec | |
parent | ccdb8184232468551e82eacc98857d3393a6d966 (diff) |
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() |