Permalink
Browse files

patch 8.0.1251: invalid expressin passed to WaitFor()

Problem:    Invalid expressin passed to WaitFor().
Solution:   Check if the variable exists.
  • Loading branch information...
brammool committed Nov 2, 2017
1 parent f8f8b2e commit d97fbf171ec0e63117813da045d2a1c51a9b6f62
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/testdir/test_clientserver.vim
  2. +2 −0 src/version.c
@@ -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
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1251,
/**/
1250,
/**/

0 comments on commit d97fbf1

Please sign in to comment.