0
0
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:
Bram Moolenaar
2016-03-08 19:07:22 +01:00
parent 13d6fb17a2
commit d9d473ea12
2 changed files with 8 additions and 3 deletions

View File

@@ -103,9 +103,12 @@ endfunc
" Wait for up to a second for "expr" to become true.
func s:waitFor(expr)
for i in range(100)
if eval(a:expr)
return
endif
try
if eval(a:expr)
return
endif
catch
endtry
sleep 10m
endfor
endfunc

View File

@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1520,
/**/
1519,
/**/