Correctly add the branch name suffix when the stem
of the filename contains a dot.
This commit is contained in:
Enrico Forestieri 2019-02-19 19:51:11 +01:00
parent 2ae51b947b
commit c3b9504835

View File

@ -812,10 +812,9 @@ FileName Buffer::Impl::exportFileName() const
if (branch_suffix.empty())
return filename;
string const name = filename.onlyFileNameWithoutExt()
+ to_utf8(branch_suffix);
string const name = addExtension(filename.onlyFileNameWithoutExt()
+ to_utf8(branch_suffix), filename.extension());
FileName res(filename.onlyPath().absFileName() + "/" + name);
res.changeExtension(filename.extension());
return res;
}