mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Fix comparison of document path with candidate name
This check is so that we always include the current document, even if the exclude/binary globs are setup to exclude it.
This commit is contained in:
@@ -2117,10 +2117,10 @@ namespace
|
||||
path::glob_t const binaryGlob(settings.get(kSettingsBinaryKey, ""));
|
||||
|
||||
std::vector<std::string> v;
|
||||
for(auto const& path : candidates)
|
||||
for(auto const& name : candidates)
|
||||
{
|
||||
if(path == documentPath || !binaryGlob.does_match(path) && !excludeGlob.does_match(path))
|
||||
v.push_back(path);
|
||||
if(name == documentName || !binaryGlob.does_match(name) && !excludeGlob.does_match(name))
|
||||
v.push_back(name);
|
||||
}
|
||||
|
||||
if(v.size() == 1)
|
||||
|
||||
Reference in New Issue
Block a user