Skip to content

Commit 76ed862

Browse files
committed
Fix issue with new function-call setup in tests
1 parent 57518b8 commit 76ed862

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/plugin/funcref_replacement_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
specify "function call" do
77
set_file_contents 'one'
8-
vim.command("function! Custom(match) \n return a:match[0] . '1' \n endfunction")
8+
vim.command("function! Custom(...) \n return a:1[0] . '1' \n endfunction")
99
vim.command("let b:switch_custom_definitions = [{ 'one': funcref('Custom') }]")
1010

1111
vim.switch

0 commit comments

Comments
 (0)