]> granicus.if.org Git - vim/commitdiff
patch 8.0.1155: Ruby command triggers a warning v8.0.1155
authorBram Moolenaar <Bram@vim.org>
Tue, 26 Sep 2017 19:21:44 +0000 (21:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 26 Sep 2017 19:21:44 +0000 (21:21 +0200)
Problem:    Ruby command triggers a warning when RUBYOPT is set to "-w".
Solution:   use "-e_=0" instead of "-e0". (Masataka Pocke Kuwabara, closes
            #2143)

src/if_ruby.c
src/version.c

index c1b42e67557ad6683488235ea23aff67720da067..f3434a95b2a627181b89b3c56cd410ee7a8ee18a 100644 (file)
@@ -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");
index d38664cd947700d7153047988b3f8d476c3ec8e2..ba4f56a6fa86c455d1d2341c6dbbfcf0949d79cd 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1155,
 /**/
     1154,
 /**/