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:
Bjorn Winckler
2007-10-20 15:26:15 +02:00
parent 552088f0b9
commit 1e7199d3e5
+6
View File
@@ -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) {