mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 04:38:13 -05:00
Don’t present dot files as having an extension
This is just for the dialog text when user is asked to select a file type.
This commit is contained in:
@@ -139,8 +139,9 @@ static NSArray* wrap (std::set<grammar_info_t> const& array)
|
||||
std::string const ext = path::extensions(to_s(path));;
|
||||
if(ext != "")
|
||||
{
|
||||
variables["X"] = ext;
|
||||
self.persistentSetting = YES;
|
||||
if(ext != path::name(to_s(path)))
|
||||
variables["X"] = ext;
|
||||
}
|
||||
|
||||
std::string const alert = format_string::expand(to_s(alertFormatString), variables);
|
||||
|
||||
Reference in New Issue
Block a user