Mercurial > vim
comparison src/testdir/test_expr.vim @ 18576:e9675870c480 v8.1.2282
patch 8.1.2282: crash when passing many arguments through a partial
Commit: https://github.com/vim/vim/commit/4c054e9fb23027b55a09ee647a3a2c91936aeb1b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 10 00:13:50 2019 +0100
patch 8.1.2282: crash when passing many arguments through a partial
Problem: Crash when passing many arguments through a partial. (Andy
Massimino)
Solution: Check the number of arguments. (closes #5186)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Nov 2019 00:15:04 +0100 |
parents | dfe9db84e326 |
children | 2a017e9dc6da |
comparison
equal
deleted
inserted
replaced
18575:a5f35d5b839f | 18576:e9675870c480 |
---|---|
494 call assert_equal(2, OneByName()) | 494 call assert_equal(2, OneByName()) |
495 call assert_equal(1, OneByRef()) | 495 call assert_equal(1, OneByRef()) |
496 let OneByRef = 'One'->funcref() | 496 let OneByRef = 'One'->funcref() |
497 call assert_equal(2, OneByRef()) | 497 call assert_equal(2, OneByRef()) |
498 call assert_fails('echo funcref("{")', 'E475:') | 498 call assert_fails('echo funcref("{")', 'E475:') |
499 let OneByRef = funcref("One", repeat(["foo"], 20)) | |
500 call assert_fails('let OneByRef = funcref("One", repeat(["foo"], 21))', 'E118:') | |
499 endfunc | 501 endfunc |
500 | 502 |
501 func Test_setmatches() | 503 func Test_setmatches() |
502 hi def link 1 Comment | 504 hi def link 1 Comment |
503 hi def link 2 PreProc | 505 hi def link 2 PreProc |