Skip to content

Commit 1d573ef

Browse files
authored
Merge pull request #1976 from aybe/fix-missing-directory-extension
Render directory node fully (including extension)
2 parents 1a678f4 + b13b80c commit 1d573ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/ImFileDialog/ImFileDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ namespace ifd {
10721072
std::error_code ec;
10731073
ImGui::PushID(node);
10741074
bool isClicked = false;
1075-
std::string displayName = u8StringToString(node->Path.stem().u8string());
1075+
std::string displayName = u8StringToString(node->Path.filename().u8string());
10761076
if (displayName.size() == 0)
10771077
displayName = u8StringToString(node->Path.u8string());
10781078
if (FolderNode(displayName.c_str(), (ImTextureID)m_getIcon(node->Path), isClicked)) {

0 commit comments

Comments
 (0)