File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed
Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -991,7 +991,7 @@ - (void)setFont:(GuiFont)font wide:(BOOL)wide
991991{
992992 NSString *fontName = (NSString *)font;
993993 float size = 0 ;
994- NSArray *components = [fontName componentsSeparatedByString: @" :" ];
994+ NSArray *components = [fontName componentsSeparatedByString: @" :h " ];
995995 if ([components count ] == 2 ) {
996996 size = [[components lastObject ] floatValue ];
997997 fontName = [components objectAtIndex: 0 ];
Original file line number Diff line number Diff line change 10251025gui_macvim_font_with_name (char_u *name)
10261026{
10271027 if (!name)
1028- return (GuiFont)[[NSString alloc ] initWithFormat: @" %@ :%d " ,
1028+ return (GuiFont)[[NSString alloc ] initWithFormat: @" %@ :h %d " ,
10291029 MMDefaultFontName, MMDefaultFontSize];
10301030
10311031 NSString *fontName = [NSString stringWithVimString: name];
10631063 // can load it. Otherwise we ask NSFont if it can load it.
10641064 if ([fontName isEqualToString: MMDefaultFontName]
10651065 || [NSFont fontWithName: fontName size: size])
1066- return [[NSString alloc ] initWithFormat: @" %@ :%d " , fontName, size];
1066+ return [[NSString alloc ] initWithFormat: @" %@ :h %d " , fontName, size];
10671067 }
10681068
10691069 return NOFONT;
Original file line number Diff line number Diff line change @@ -7059,7 +7059,7 @@ $as_echo "$rubyhdrdir" >&6; }
70597059 RUBY_LIBS=" $RUBY_LIBS -L$rubylibdir "
70607060 elif test -d " /System/Library/Frameworks/Ruby.framework" ; then
70617061 RUBY_LIBS=" -framework Ruby"
7062- RUBY_CFLAGS=
7062+ RUBY_CFLAGS=" -DRUBY_VERSION= $rubyversion "
70637063 librubyarg=
70647064 fi
70657065
Original file line number Diff line number Diff line change @@ -1846,7 +1846,7 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
18461846 dnl On Mac OS X it is safer to just use the -framework flag
18471847 RUBY_LIBS="-framework Ruby"
18481848 dnl Don't include the -I flag when -framework is set
1849- RUBY_CFLAGS=
1849+ RUBY_CFLAGS="-DRUBY_VERSION=$rubyversion"
18501850 librubyarg=
18511851 fi
18521852
Original file line number Diff line number Diff line change 113113# include <ruby.h>
114114#endif
115115#ifdef RUBY19_OR_LATER
116- # include <ruby/encoding.h>
116+ # ifdef FEAT_GUI_MACVIM
117+ # include <Ruby/ruby/encoding.h>
118+ # else
119+ # include <ruby/encoding.h>
120+ # endif
117121#endif
118122
119123#undef off_t /* ruby defines off_t as _int64, Mingw uses long */
Original file line number Diff line number Diff line change 1616# define OPAQUE_TOOLBOX_STRUCTS 0
1717#endif
1818
19+ /* Include MAC_OS_X_VERSION_* macros (needed for OS X 10.9, should be supported
20+ * as of OS X 10.2)
21+ * */
22+ #include <AvailabilityMacros.h>
23+
1924/*
2025 * Macintosh machine-dependent things.
2126 *
You can’t perform that action at this time.
0 commit comments