]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.2172: Vim9: compiling :defer may fail v9.0.2172
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 16 Dec 2023 13:36:08 +0000 (14:36 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 16 Dec 2023 13:36:08 +0000 (14:36 +0100)
commita185a31fc05c2dd15315cd59afc02b69aabb5893
tree8ea80a62b1ca0270e484c1fd102cf9a2954cebe9
parent535e8f59410a4d3065829e010bc5e13608a968cc
patch 9.0.2172: Vim9: compiling :defer may fail

Problem:  Vim9: compiling :defer may fail
Solution: compile defer, when ctx_skip is not SKIP_YES

compiling defer fails in an if statement with false condition,
so check the ctx_skip value when compiling :defer

fixes:  #13698
closes: #13702

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_vim9_script.vim
src/version.c
src/vim9cmds.c