0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.1251: invalid expressin passed to WaitFor()

Problem:    Invalid expressin passed to WaitFor().
Solution:   Check if the variable exists.
This commit is contained in:
Bram Moolenaar 2017-11-02 19:23:03 +01:00
parent f8f8b2eadb
commit d97fbf171e
2 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,7 @@ func Test_client_server()
call remote_foreground(name)
call remote_send(name, ":let testvar = 'yes'\<CR>")
call WaitFor('remote_expr("' . name . '", "testvar", "", 1) == "yes"')
call WaitFor('remote_expr("' . name . '", "exists(\"testvar\") ? testvar : \"\"", "", 1) == "yes"')
call assert_equal('yes', remote_expr(name, "testvar", "", 2))
if has('unix') && has('gui') && !has('gui_running')

View File

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