summaryrefslogtreecommitdiff
path: root/src/if_ruby.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-02 20:20:09 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-02 20:20:09 +0200
commitb2c0350c67736b0e054718fb5bf136147ee2261e (patch)
treea1b4a9651813cbb1d8cb1b2362760f5c54e47976 /src/if_ruby.c
parent730cde924cea50977bdbfa5b977180bfaa188a27 (diff)
downloadvim-b2c0350c67736b0e054718fb5bf136147ee2261e.zip
Make updating text for conceal mode simpler. A few compiler warning fixes.
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 4e1ce4280..2608f1f79 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -609,10 +609,12 @@ static int ensure_ruby_initialized(void)
char *argv[] = {"gvim.exe"};
NtInitialize(&argc, &argv);
#endif
+ {
#ifdef RUBY19_OR_LATER
- RUBY_INIT_STACK;
+ RUBY_INIT_STACK;
#endif
- ruby_init();
+ ruby_init();
+ }
#ifdef RUBY19_OR_LATER
ruby_script("vim-ruby");
#endif