Skip to content

Commit da95ee4

Browse files
committed
Merge branch 'master' of git://github.com/b4winckler/macvim
Conflicts: src/auto/configure
2 parents ad225a7 + bc25430 commit da95ee4

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

src/MacVim/MMBackend.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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];

src/MacVim/gui_macvim.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@
10251025
gui_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];
@@ -1063,7 +1063,7 @@
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;

src/auto/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/if_ruby.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@
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 */

src/os_mac.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
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
*

0 commit comments

Comments
 (0)