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.
|
||||
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
|
||||
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1520,
|
||||
/**/
|
||||
1519,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user