comparison src/testdir/term_util.vim @ 19691:60b5abfc4897 v8.2.0402

patch 8.2.0402: setting local instead of global flag Commit: https://github.com/vim/vim/commit/30d53e2c11e670845830bdfc29bf8c1615df61a8 Author: Bram Moolenaar <Bram@vim.org> 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".
author Bram Moolenaar <Bram@vim.org>
date Wed, 18 Mar 2020 21:15:03 +0100
parents c3f506e24eab
children 031184ace7c5
comparison
equal deleted inserted replaced
19690:7f881865a240 19691:60b5abfc4897
92 let lines = map(range(1, rows), {key, val -> term_getline(buf, val)}) 92 let lines = map(range(1, rows), {key, val -> term_getline(buf, val)})
93 call assert_report('RunVimInTerminal() failed, screen contents: ' . join(lines, "<NL>")) 93 call assert_report('RunVimInTerminal() failed, screen contents: ' . join(lines, "<NL>"))
94 endtry 94 endtry
95 95
96 " Starting a terminal to run Vim is always considered flaky. 96 " Starting a terminal to run Vim is always considered flaky.
97 let test_is_flaky = 1 97 let g:test_is_flaky = 1
98 98
99 return buf 99 return buf
100 endfunc 100 endfunc
101 101
102 " Stop a Vim running in terminal buffer "buf". 102 " Stop a Vim running in terminal buffer "buf".
103 func StopVimInTerminal(buf) 103 func StopVimInTerminal(buf)
104 " Using a terminal to run Vim is always considered flaky. 104 " Using a terminal to run Vim is always considered flaky.
105 let test_is_flaky = 1 105 let g:test_is_flaky = 1
106 106
107 call assert_equal("running", term_getstatus(a:buf)) 107 call assert_equal("running", term_getstatus(a:buf))
108 108
109 " CTRL-O : works both in Normal mode and Insert mode to start a command line. 109 " CTRL-O : works both in Normal mode and Insert mode to start a command line.
110 " In Command-line it's inserted, the CTRL-U removes it again. 110 " In Command-line it's inserted, the CTRL-U removes it again.