mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 7.4.1520
Problem: Channel test: Waiting for a file to appear doesn't work. Solution: In waitFor() ignore errors.
This commit is contained in:
@@ -103,9 +103,12 @@ endfunc
|
|||||||
" Wait for up to a second for "expr" to become true.
|
" Wait for up to a second for "expr" to become true.
|
||||||
func s:waitFor(expr)
|
func s:waitFor(expr)
|
||||||
for i in range(100)
|
for i in range(100)
|
||||||
if eval(a:expr)
|
try
|
||||||
return
|
if eval(a:expr)
|
||||||
endif
|
return
|
||||||
|
endif
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
sleep 10m
|
sleep 10m
|
||||||
endfor
|
endfor
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -743,6 +743,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 */
|
||||||
|
/**/
|
||||||
|
1520,
|
||||||
/**/
|
/**/
|
||||||
1519,
|
1519,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user