summaryrefslogtreecommitdiff
path: root/src/if_ruby.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-26 21:21:44 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-26 21:21:44 +0200
commitd1bc96ce2466ac1b4af4a2c36de455a1df318d1d (patch)
tree1fc37ae25c103461612a4c34d313684283918811 /src/if_ruby.c
parent1b38344e00af65df12946fffda7f3201621c35ef (diff)
downloadvim-git-d1bc96ce2466ac1b4af4a2c36de455a1df318d1d.tar.gz
patch 8.0.1155: Ruby command triggers a warningv8.0.1155
Problem: Ruby command triggers a warning when RUBYOPT is set to "-w". Solution: use "-e_=0" instead of "-e0". (Masataka Pocke Kuwabara, closes #2143)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index c1b42e675..f3434a95b 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -882,7 +882,7 @@ static int ensure_ruby_initialized(void)
#ifdef RUBY19_OR_LATER
{
int dummy_argc = 2;
- char *dummy_argv[] = {"vim-ruby", "-e0"};
+ char *dummy_argv[] = {"vim-ruby", "-e_=0"};
ruby_options(dummy_argc, dummy_argv);
}
ruby_script("vim-ruby");