0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.1207: Vim9: crash in expr test when run in the GUI

Problem:    Vim9: crash in expr test when run in the GUI.
Solution:   Break out of loop over hashtab also when function got removed and
            added.
This commit is contained in:
Bram Moolenaar
2020-07-14 15:01:05 +02:00
parent 1bce831e13
commit 7ce85be63b
3 changed files with 10 additions and 10 deletions

View File

@@ -1563,10 +1563,8 @@ def Test_expr7_method_call()
enddef
func Test_expr7_trailing_fails()
" Temporarily commented out - somehow crash occurs with too many
" CheckDefFailure calls in the GUI only.
" call CheckDefFailure(['let l = [2]', 'l->{l -> add(l, 8)}'], 'E107')
" call CheckDefFailure(['let l = [2]', 'l->{l -> add(l, 8)} ()'], 'E274')
call CheckDefFailure(['let l = [2]', 'l->{l -> add(l, 8)}'], 'E107')
call CheckDefFailure(['let l = [2]', 'l->{l -> add(l, 8)} ()'], 'E274')
endfunc
func Test_expr_fails()