Always recommend plain text when opening files.

This commit is contained in:
Ryan Goulden
2013-10-10 02:39:44 -04:00
parent 52e6b326c4
commit 3548028a65

View File

@@ -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);