Skip to content

Commit d97fbf1

Browse files
committed
patch 8.0.1251: invalid expressin passed to WaitFor()
Problem: Invalid expressin passed to WaitFor(). Solution: Check if the variable exists.
1 parent f8f8b2e commit d97fbf1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_clientserver.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func Test_client_server()
4242
call remote_foreground(name)
4343

4444
call remote_send(name, ":let testvar = 'yes'\<CR>")
45-
call WaitFor('remote_expr("' . name . '", "testvar", "", 1) == "yes"')
45+
call WaitFor('remote_expr("' . name . '", "exists(\"testvar\") ? testvar : \"\"", "", 1) == "yes"')
4646
call assert_equal('yes', remote_expr(name, "testvar", "", 2))
4747

4848
if has('unix') && has('gui') && !has('gui_running')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1251,
764766
/**/
765767
1250,
766768
/**/

0 commit comments

Comments
 (0)