mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
vim-patch:8.2.0499: calling a lambda is slower than evaluating a string
Problem: Calling a lambda is slower than evaluating a string.
Solution: Make calling a lambda faster. (Ken Takata, closes vim/vim#5727)
f10806b250
Port "uf_flags" constants from patch 8.2.1054 to sync with Vim.
Port user_func_error() from patch 8.2.0149.
Port Test_lambda_scope() changes from patch 8.1.0736 so that it passes.
This commit is contained in:
@@ -181,7 +181,7 @@ function! Test_lambda_scope()
|
||||
let l:D = s:NewCounter2()
|
||||
|
||||
call assert_equal(1, l:C())
|
||||
call assert_fails(':call l:D()', 'E15:') " E121: then E15:
|
||||
call assert_fails(':call l:D()', 'E121:')
|
||||
call assert_equal(2, l:C())
|
||||
endfunction
|
||||
|
||||
|
Reference in New Issue
Block a user