0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.1155: Ruby command triggers a warning

Problem:    Ruby command triggers a warning when RUBYOPT is set to "-w".
Solution:   use "-e_=0" instead of "-e0". (Masataka Pocke Kuwabara, closes
            #2143)
This commit is contained in:
Bram Moolenaar 2017-09-26 21:21:44 +02:00
parent 1b38344e00
commit d1bc96ce24
2 changed files with 3 additions and 1 deletions

View File

@ -882,7 +882,7 @@ static int ensure_ruby_initialized(void)
#ifdef RUBY19_OR_LATER #ifdef RUBY19_OR_LATER
{ {
int dummy_argc = 2; int dummy_argc = 2;
char *dummy_argv[] = {"vim-ruby", "-e0"}; char *dummy_argv[] = {"vim-ruby", "-e_=0"};
ruby_options(dummy_argc, dummy_argv); ruby_options(dummy_argc, dummy_argv);
} }
ruby_script("vim-ruby"); ruby_script("vim-ruby");

View File

@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1155,
/**/ /**/
1154, 1154,
/**/ /**/