mirror of
https://github.com/neovim/neovim.git
synced 2026-08-31 03:13:48 +00:00
vim-patch:9.1.0831: 'findexpr' can't be used as lambad or Funcref (#31058)
Problem: 'findexpr' can't be used for lambads
(Justin Keyes)
Solution: Replace the findexpr option with the findfunc option
(Yegappan Lakshmanan)
related: vim/vim#15905
closes: vim/vim#15976
a13f3a4f5d
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -692,9 +692,9 @@ func Test_opfunc_callback()
|
||||
delfunc s:OpFunc3
|
||||
|
||||
" Using Vim9 lambda expression in legacy context should fail
|
||||
" set opfunc=(a)\ =>\ OpFunc1(24,\ a)
|
||||
set opfunc=(a)\ =>\ OpFunc1(24,\ a)
|
||||
let g:OpFunc1Args = []
|
||||
" call assert_fails('normal! g@l', 'E117:')
|
||||
call assert_fails('normal! g@l', 'E117:')
|
||||
call assert_equal([], g:OpFunc1Args)
|
||||
|
||||
" set 'operatorfunc' to a partial with dict. This used to cause a crash.
|
||||
|
||||
Reference in New Issue
Block a user