mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Replace underscores with spaces when parsing font names.
Now possible to use either :set gfn=Courier\ New:h10 or :set gfn=Courier_New:h10 to set the font.
This commit is contained in:
@@ -835,6 +835,12 @@ enum {
|
||||
} else if ([components count] > 2) {
|
||||
parseFailed = YES;
|
||||
}
|
||||
|
||||
if (!parseFailed) {
|
||||
// Replace underscores with spaces.
|
||||
fontName = [[fontName componentsSeparatedByString:@"_"]
|
||||
componentsJoinedByString:@" "];
|
||||
}
|
||||
}
|
||||
|
||||
if (!parseFailed && [fontName length] > 0) {
|
||||
|
||||
Reference in New Issue
Block a user