1
0
forked from aniani/vim

patch 8.2.1908: Lua is initialized even when not used

Problem:    Lua is initialized even when not used.
Solution:   Put lua_init() after check for "eap->skip". (Christian Brabandt,
            closes #7191).  Avoid compiler warnings.
This commit is contained in:
Bram Moolenaar
2020-10-26 20:18:08 +01:00
parent f9d51354de
commit c8970b9464
3 changed files with 20 additions and 9 deletions

View File

@@ -1,6 +1,14 @@
" Tests for Lua.
source check.vim
" This test also works without the lua feature.
func Test_skip_lua()
if 0
lua print("Not executed")
endif
endfunc
CheckFeature lua
CheckFeature float