changeset 12553:270aec277c81 v8.0.1155

patch 8.0.1155: Ruby command triggers a warning commit https://github.com/vim/vim/commit/d1bc96ce2466ac1b4af4a2c36de455a1df318d1d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 26 21:21:44 2017 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 26 Sep 2017 21:30:04 +0200
parents 572c4fe58bcf
children 1bce0814c78a
files src/if_ruby.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1155,
+/**/
     1154,
 /**/
     1153,