> I've installed Vim 7.3e from the Cream site on a number of machines
> running Windows XP.  Every now and then, usually (always?) when
> executing :q to close a window, I get the error message,
> 
>     E370: Could not load library lua51.dll
> 
> followed by,
> 
>     Lua library cannot be loaded.
> 
> I don't use Lua, so it is not installed on any of my systems.  I
> don't have Ruby, either, but Vim never complains about that.  It's
> also odd that it complains when I _close_ a window.

Thanks for the bug report. The simple fix is attached.

I didn't know Cream provided a +lua/dyn version of Vim for Windows. Nice.

Cheers,
Luis

-- 
Computers are useless. They can only give you answers.
                -- Pablo Picasso

-- 
Luis Carvalho (Kozure)
lua -e 'print((("[email protected]"):gsub("(%u+%.)","")))'

-- 
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
--- if_lua.c.orig	2010-08-11 20:51:15.000000000 -0400
+++ if_lua.c	2010-08-12 00:55:48.000000000 -0400
@@ -1240,7 +1240,7 @@
     void
 lua_buffer_free(buf_T *buf)
 {
-    if (lua_init() == FAIL) return;
+    if (L == NULL) return; /* not initialized */
     luaV_getfield(L, LUAVIM_FREE);
     lua_pushlightuserdata(L, (void *) buf);
     lua_call(L, 1, 0);
@@ -1250,7 +1250,7 @@
     void
 lua_window_free(win_T *win)
 {
-    if (lua_init() == FAIL) return;
+    if (L == NULL) return; /* not initialized */
     luaV_getfield(L, LUAVIM_FREE);
     lua_pushlightuserdata(L, (void *) win);
     lua_call(L, 1, 0);

Raspunde prin e-mail lui