mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 21:27:56 -05:00
Use path::is_absolute instead of own logic
This commit is contained in:
@@ -57,7 +57,7 @@ namespace
|
||||
static std::vector<std::string> paths (std::string const& directory)
|
||||
{
|
||||
std::vector<std::string> res;
|
||||
for(std::string cwd = (directory.empty() || directory[0] != '/' ? path::home() : directory); true; cwd = cwd == "/" ? path::home() : path::parent(cwd))
|
||||
for(std::string cwd = path::is_absolute(directory) ? directory : path::home(); true; cwd = cwd == "/" ? path::home() : path::parent(cwd))
|
||||
{
|
||||
res.push_back(path::join(cwd, ".tm_properties"));
|
||||
if(cwd == path::home())
|
||||
|
||||
Reference in New Issue
Block a user