Mercurial > vim
changeset 25340:37001467805f v8.2.3207
patch 8.2.3207: Vim9: crash when compiling string fails
Commit: https://github.com/vim/vim/commit/5a234eb18e6e43408755bb24e813330306c11629
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 24 13:18:48 2021 +0200
patch 8.2.3207: Vim9: crash when compiling string fails
Problem: Vim9: crash when compiling string fails. (Yegappan Lakshmanan)
Solution: Adjust the type stack length.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Jul 2021 13:30:04 +0200 |
parents | 5f0765ae6ad9 |
children | 040fe01278e8 |
files | src/testdir/test_vim9_builtin.vim src/version.c src/vim9compile.c |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -2566,8 +2566,13 @@ def Test_searchpair() END CheckScriptSuccess(lines) assert_equal('yes', g:caught) - unlet g:caught + + lines =<< trim END + echo searchpair("a", "b", "c", "d", "1", "f") + END + CheckDefAndScriptFailure2(lines, 'E1001:', 'E475:') + bwipe! enddef