Skip to content

Commit d1bc96c

Browse files
committed
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)
1 parent 1b38344 commit d1bc96c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/if_ruby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static int ensure_ruby_initialized(void)
882882
#ifdef RUBY19_OR_LATER
883883
{
884884
int dummy_argc = 2;
885-
char *dummy_argv[] = {"vim-ruby", "-e0"};
885+
char *dummy_argv[] = {"vim-ruby", "-e_=0"};
886886
ruby_options(dummy_argc, dummy_argv);
887887
}
888888
ruby_script("vim-ruby");

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1155,
764766
/**/
765767
1154,
766768
/**/

0 commit comments

Comments
 (0)