# HG changeset patch # User Bram Moolenaar # Date 1584562503 -3600 # Node ID 60b5abfc48970f0df0cb70252e71a368e28eb8c5 # Parent 7f881865a240bee2ccf1a2558bd7da9f16da2bed patch 8.2.0402: setting local instead of global flag Commit: https://github.com/vim/vim/commit/30d53e2c11e670845830bdfc29bf8c1615df61a8 Author: Bram Moolenaar Date: Wed Mar 18 21:10:44 2020 +0100 patch 8.2.0402: setting local instead of global flag Problem: Setting local instead of global flag. Solution: Prepend "g:" to "test_is_flaky". diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim --- a/src/testdir/screendump.vim +++ b/src/testdir/screendump.vim @@ -25,7 +25,7 @@ func VerifyScreenDump(buf, filename, opt let testfile = 'failed/' . a:filename . '.dump' " Starting a terminal to make a screendump is always considered flaky. - let test_is_flaky = 1 + let g:test_is_flaky = 1 " Redraw to execute the code that updates the screen. Otherwise we get the " text and attributes only from the internal buffer. diff --git a/src/testdir/term_util.vim b/src/testdir/term_util.vim --- a/src/testdir/term_util.vim +++ b/src/testdir/term_util.vim @@ -94,7 +94,7 @@ func RunVimInTerminal(arguments, options endtry " Starting a terminal to run Vim is always considered flaky. - let test_is_flaky = 1 + let g:test_is_flaky = 1 return buf endfunc @@ -102,7 +102,7 @@ endfunc " Stop a Vim running in terminal buffer "buf". func StopVimInTerminal(buf) " Using a terminal to run Vim is always considered flaky. - let test_is_flaky = 1 + let g:test_is_flaky = 1 call assert_equal("running", term_getstatus(a:buf)) diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -1869,7 +1869,7 @@ func Test_Changed_FirstTime() CheckFeature terminal CheckNotGui " Starting a terminal to run Vim is always considered flaky. - let test_is_flaky = 1 + let g:test_is_flaky = 1 " Prepare file for TextChanged event. call writefile([''], 'Xchanged.txt') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 402, +/**/ 401, /**/ 400,