mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.1002: test may fail when run directly
Problem: Test may fail when run directly. Solution: Check if g:run_nr exists. (Christian Brabandt, closes #6285)
This commit is contained in:
@@ -28,10 +28,12 @@ endfunc
|
|||||||
" The second argument is the minimum time to wait in msec, 10 if omitted.
|
" The second argument is the minimum time to wait in msec, 10 if omitted.
|
||||||
func TermWait(buf, ...)
|
func TermWait(buf, ...)
|
||||||
let wait_time = a:0 ? a:1 : 10
|
let wait_time = a:0 ? a:1 : 10
|
||||||
if g:run_nr == 2
|
if exists('g:run_nr')
|
||||||
let wait_time *= 4
|
if g:run_nr == 2
|
||||||
elseif g:run_nr > 2
|
let wait_time *= 4
|
||||||
let wait_time *= 10
|
elseif g:run_nr > 2
|
||||||
|
let wait_time *= 10
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
call term_wait(a:buf, wait_time)
|
call term_wait(a:buf, wait_time)
|
||||||
|
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1002,
|
||||||
/**/
|
/**/
|
||||||
1001,
|
1001,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user