@@ -374,7 +374,7 @@ func Test_term_mouse()
374374 call term_sendkeys (buf , " :set mouse=a term=xterm ttymouse=sgr\<CR> " )
375375 call term_sendkeys (buf , " :set clipboard=\<CR> " )
376376 call term_sendkeys (buf , " :set mousemodel=extend\<CR> " )
377- call term_wait (buf )
377+ call TermWait (buf )
378378 redraw !
379379
380380 " Use the mouse to enter the terminal window
@@ -388,9 +388,9 @@ func Test_term_mouse()
388388 call feedkeys (" \<LeftMouse>\<LeftRelease> " , ' xt' )
389389 call test_setmouse (3 , 8 )
390390 call term_sendkeys (buf , " \<LeftMouse>\<LeftRelease> " )
391- call term_wait (buf , 50 )
391+ call TermWait (buf , 50 )
392392 call term_sendkeys (buf , " :call writefile([json_encode(getpos('.'))], 'Xbuf')\<CR> " )
393- call term_wait (buf , 50 )
393+ call TermWait (buf , 50 )
394394 let pos = json_decode (readfile (' Xbuf' )[0 ])
395395 call assert_equal ([3 , 8 ], pos[1 :2 ])
396396
@@ -400,9 +400,9 @@ func Test_term_mouse()
400400 call term_sendkeys (buf , " \<LeftMouse> " )
401401 call test_setmouse (2 , 16 )
402402 call term_sendkeys (buf , " \<LeftRelease> y" )
403- call term_wait (buf , 50 )
403+ call TermWait (buf , 50 )
404404 call term_sendkeys (buf , " :call writefile([@\" ], 'Xbuf')\<CR> " )
405- call term_wait (buf , 50 )
405+ call TermWait (buf , 50 )
406406 call assert_equal (' yellow' , readfile (' Xbuf' )[0 ])
407407
408408 " Test for selecting text using doubleclick
@@ -411,18 +411,18 @@ func Test_term_mouse()
411411 call term_sendkeys (buf , " \<LeftMouse>\<LeftRelease>\<LeftMouse> " )
412412 call test_setmouse (1 , 17 )
413413 call term_sendkeys (buf , " \<LeftRelease> y" )
414- call term_wait (buf , 50 )
414+ call TermWait (buf , 50 )
415415 call term_sendkeys (buf , " :call writefile([@\" ], 'Xbuf')\<CR> " )
416- call term_wait (buf , 50 )
416+ call TermWait (buf , 50 )
417417 call assert_equal (' three four' , readfile (' Xbuf' )[0 ])
418418
419419 " Test for selecting a line using triple click
420420 call delete (' Xbuf' )
421421 call test_setmouse (3 , 2 )
422422 call term_sendkeys (buf , " \<LeftMouse>\<LeftRelease>\<LeftMouse>\<LeftRelease>\<LeftMouse>\<LeftRelease> y" )
423- call term_wait (buf , 50 )
423+ call TermWait (buf , 50 )
424424 call term_sendkeys (buf , " :call writefile([@\" ], 'Xbuf')\<CR> " )
425- call term_wait (buf , 50 )
425+ call TermWait (buf , 50 )
426426 call assert_equal (" vim emacs sublime nano\n " , readfile (' Xbuf' )[0 ])
427427
428428 " Test for selecting a block using qudraple click
@@ -431,9 +431,9 @@ func Test_term_mouse()
431431 call term_sendkeys (buf , " \<LeftMouse>\<LeftRelease>\<LeftMouse>\<LeftRelease>\<LeftMouse>\<LeftRelease>\<LeftMouse> " )
432432 call test_setmouse (3 , 13 )
433433 call term_sendkeys (buf , " \<LeftRelease> y" )
434- call term_wait (buf , 50 )
434+ call TermWait (buf , 50 )
435435 call term_sendkeys (buf , " :call writefile([@\" ], 'Xbuf')\<CR> " )
436- call term_wait (buf , 50 )
436+ call TermWait (buf , 50 )
437437 call assert_equal (" ree\n yel\n sub" , readfile (' Xbuf' )[0 ])
438438
439439 " Test for extending a selection using right click
@@ -442,23 +442,23 @@ func Test_term_mouse()
442442 call term_sendkeys (buf , " \<LeftMouse>\<LeftRelease> " )
443443 call test_setmouse (2 , 16 )
444444 call term_sendkeys (buf , " \<RightMouse>\<RightRelease> y" )
445- call term_wait (buf , 50 )
445+ call TermWait (buf , 50 )
446446 call term_sendkeys (buf , " :call writefile([@\" ], 'Xbuf')\<CR> " )
447- call term_wait (buf , 50 )
447+ call TermWait (buf , 50 )
448448 call assert_equal (" n yellow" , readfile (' Xbuf' )[0 ])
449449
450450 " Test for pasting text using middle click
451451 call delete (' Xbuf' )
452452 call term_sendkeys (buf , " :let @r='bright '\<CR> " )
453453 call test_setmouse (2 , 22 )
454454 call term_sendkeys (buf , " \" r\<MiddleMouse>\<MiddleRelease> " )
455- call term_wait (buf , 50 )
455+ call TermWait (buf , 50 )
456456 call term_sendkeys (buf , " :call writefile([getline(2)], 'Xbuf')\<CR> " )
457- call term_wait (buf , 50 )
457+ call TermWait (buf , 50 )
458458 call assert_equal (" red bright blue" , readfile (' Xbuf' )[0 ][-15 :])
459459
460460 " cleanup
461- call term_wait (buf )
461+ call TermWait (buf )
462462 call StopVimInTerminal (buf )
463463 let &mouse = save_mouse
464464 let &term = save_term
@@ -494,14 +494,14 @@ func Test_term_modeless_selection()
494494 let buf = RunVimInTerminal (' Xtest_modeless -n' , {})
495495 call term_sendkeys (buf , " :set nocompatible\<CR> " )
496496 call term_sendkeys (buf , " :set mouse=\<CR> " )
497- call term_wait (buf )
497+ call TermWait (buf )
498498 redraw !
499499
500500 " Use the mouse to enter the terminal window
501501 call win_gotoid (prev_win)
502502 call feedkeys (MouseLeftClickCode (1 , 1 ), ' x' )
503503 call feedkeys (MouseLeftReleaseCode (1 , 1 ), ' x' )
504- call term_wait (buf )
504+ call TermWait (buf )
505505 call assert_equal (1 , getwininfo (win_getid ())[0 ].terminal )
506506
507507 " Test for copying a modeless selection to clipboard
@@ -514,7 +514,7 @@ func Test_term_modeless_selection()
514514 call assert_equal (" d green y" , @* )
515515
516516 " cleanup
517- call term_wait (buf )
517+ call TermWait (buf )
518518 call StopVimInTerminal (buf )
519519 let &mouse = save_mouse
520520 let &term = save_term
0 commit comments