diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-10 16:48:19 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-10 16:48:19 +0000 |
commit | f711faf099d628a29503e91381294c02dcd9f800 (patch) | |
tree | 93f376171cc41958151ff0a056ccdde46042987c /src/if_ruby.c | |
parent | b6799acd2d50b65eecfd3d691573628e3e8aa474 (diff) |
updated for version 7.1b
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index 417c44bbc0..6bb8b804c6 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -926,7 +926,10 @@ static void ruby_vim_init(void) objtbl = rb_hash_new(); rb_global_variable(&objtbl); - mVIM = rb_define_module("VIM"); + /* The Vim module used to be called "VIM", but "Vim" is better. Make an + * alias "VIM" for backwards compatiblity. */ + mVIM = rb_define_module("Vim"); + rb_define_const(rb_cObject, "VIM", mVIM); rb_define_const(mVIM, "VERSION_MAJOR", INT2NUM(VIM_VERSION_MAJOR)); rb_define_const(mVIM, "VERSION_MINOR", INT2NUM(VIM_VERSION_MINOR)); rb_define_const(mVIM, "VERSION_BUILD", INT2NUM(VIM_VERSION_BUILD)); |