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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user