From 15e997bfb21ea75ca7890aa718201fe62e29a97c Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sat, 28 Apr 2001 19:34:59 +0000 Subject: Apply a hotfix against ruby-interp. This fixes the coredump when $_ is set to non-string in a :rubydo command. (e.g. :rubydo $_ = 0) It will be submitted to the vim6 author soon. --- editors/vim/files/patch-if_ruby.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 editors/vim/files/patch-if_ruby.c (limited to 'editors/vim/files/patch-if_ruby.c') diff --git a/editors/vim/files/patch-if_ruby.c b/editors/vim/files/patch-if_ruby.c new file mode 100644 index 000000000000..1b219841aac2 --- /dev/null +++ b/editors/vim/files/patch-if_ruby.c @@ -0,0 +1,13 @@ +--- if_ruby.c.orig Thu Apr 5 02:32:59 2001 ++++ if_ruby.c Sun Apr 29 01:47:30 2001 +@@ -66,6 +66,10 @@ + } + line = rb_lastline_get(); + if (!NIL_P(line)) { ++ if (TYPE(line) != T_STRING) { ++ EMSG("$_ must be an instance of String"); ++ return; ++ } + ml_replace(i, (char_u *) STR2CSTR(line), 1); + changed(); + #ifdef SYNTAX_HL -- cgit v1.2.3