diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-02 19:23:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-02 19:23:03 +0100 |
commit | d97fbf171ec0e63117813da045d2a1c51a9b6f62 (patch) | |
tree | 50950cc1dda05d7b60097ab565fca41c2a63a724 | |
parent | f8f8b2eadbaf3090fcfccbab560de5dbd501833d (diff) | |
download | vim-d97fbf171ec0e63117813da045d2a1c51a9b6f62.zip |
patch 8.0.1251: invalid expressin passed to WaitFor()
Problem: Invalid expressin passed to WaitFor().
Solution: Check if the variable exists.
-rw-r--r-- | src/testdir/test_clientserver.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_clientserver.vim b/src/testdir/test_clientserver.vim index 811af138c..02840de74 100644 --- a/src/testdir/test_clientserver.vim +++ b/src/testdir/test_clientserver.vim @@ -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') diff --git a/src/version.c b/src/version.c index e14c2fe03..552de7778 100644 --- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1251, +/**/ 1250, /**/ 1249, |