diff --git a/src/cpp/project/pathfinder/src/db.cpp b/src/cpp/project/pathfinder/src/db.cpp index 09d9658b..e621701a 100644 --- a/src/cpp/project/pathfinder/src/db.cpp +++ b/src/cpp/project/pathfinder/src/db.cpp @@ -155,7 +155,8 @@ namespace paf { ::simpslashbuf(path.c_str(), data); std::cout << kc << sep << data; - if (type == db_type::directory && !path.ends_with('/')) + if (!(flags & static_cast(db_flag::wordexp)) && + type == db_type::directory && !path.ends_with('/')) std::cout << '/'; std::cout << end; }