Skip to content

Commit

Permalink
patch 8.2.2868: Vim9: when executing compiled expression trylevel is …
Browse files Browse the repository at this point in the history
…changed

Problem:    Vim9: When executing a compiled expression the trylevel at start
            is changed but not restored. (closes #8214)
Solution:   Restore the trylevel at start.
  • Loading branch information
brammool committed May 18, 2021
1 parent 082a3bf commit cbe178e
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 57 deletions.
5 changes: 4 additions & 1 deletion src/testdir/test_vim9_builtin.vim
Expand Up @@ -1014,12 +1014,15 @@ def Test_searchpair()
try
searchpairpos('(', '', ')', 'nW', '[0]->map("")')
catch
g:caught = 'yes'
endtry
enddef
Fail()
END
CheckScriptFailure(lines, 'E15:')
CheckScriptSuccess(lines)
assert_equal('yes', g:caught)

unlet g:caught
bwipe!
enddef

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2868,
/**/
2867,
/**/
Expand Down

0 comments on commit cbe178e

Please sign in to comment.