mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Always recommend plain text when opening files.
This commit is contained in:
@@ -116,14 +116,12 @@ static bool is_installed (oak::uuid_t const& uuid)
|
||||
}
|
||||
}
|
||||
|
||||
if(recommended.empty())
|
||||
iterate(info, all)
|
||||
{
|
||||
iterate(info, all)
|
||||
{
|
||||
if(info->scope == "text.plain")
|
||||
recommended.insert(*info);
|
||||
}
|
||||
if(info->scope == "text.plain")
|
||||
recommended.insert(*info);
|
||||
}
|
||||
|
||||
|
||||
self.recommendedGrammars = wrap(recommended);
|
||||
self.installedGrammars = wrap(installed);
|
||||
|
||||
Reference in New Issue
Block a user