Sergey Khorev wrote: > >> at least on my computer, vim crashes when evaluating this line: > >> > >> :ruby require 'e2mmap' > >> > >> With ruby 1.8.7 everything is okay. > >> > >> Another thing I noticed (now with ruby 1.8.7 or 1.8.6). When you try > >> > >> :ruby p VIM::evaluate("input('Foo')") > >> > >> And press<esc>, you get an error message: > >> > >> ArgumentError:(eval):1240: in `evaluate`: NULL pointer given > > I confirm this with vim 7.2-385 and ruby 1.9.1 built with mingw on Win > > XP. > > It seems there are two issues here: > 1) dynamic Ruby is not initialised properly for version 1.9.1 > 2) Ruby cannot create strings from NULL (perhaps after 7.2.374) > > Attached patch provides clean up required.
Thanks, I'll add it to the todo list. -- Seen on the back of a biker's vest: If you can read this, my wife fell off. /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php