diff runtime/doc/eval.txt @ 12007:64b822c4f7ae v8.0.0884

patch 8.0.0884: can't specify the wait time for term_wait() commit https://github.com/vim/vim/commit/f3402b1b7f72d08e0357196902cce972b639bfd7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 6 19:07:08 2017 +0200 patch 8.0.0884: can't specify the wait time for term_wait() Problem: Can't specify the wait time for term_wait(). Solution: Add an otional second argument.
author Christian Brabandt <cb@256bit.org>
date Sun, 06 Aug 2017 19:15:05 +0200
parents 6889f1f25d6b
children c0ee48f48a2b
line wrap: on
line diff
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2381,7 +2381,7 @@ term_list()			List	get the list of termi
 term_scrape({buf}, {row})	List	get row of a terminal screen
 term_sendkeys({buf}, {keys})	none	send keystrokes to a terminal
 term_start({cmd}, {options})	Job	open a terminal window and run a job
-term_wait({buf})		Number  wait for screen to be updated
+term_wait({buf} [, {time}])	Number  wait for screen to be updated
 test_alloc_fail({id}, {countdown}, {repeat})
 				none	make memory allocation fail
 test_autochdir()		none	enable 'autochdir' during startup
@@ -8041,9 +8041,11 @@ term_start({cmd}, {options})				*term_st
 				 the command name.
 		{only available when compiled with the |+terminal| feature}
 
-term_wait({buf})						*term_wait()*
+term_wait({buf} [, {time}])					*term_wait()*
 		Wait for pending updates of {buf} to be handled.
 		{buf} is used as with |term_getsize()|.
+		{time} is how long to wait for updates to arrive in msec.  If
+		not set then 10 msec will be used.
 		{only available when compiled with the |+terminal| feature}
 
 test_alloc_fail({id}, {countdown}, {repeat})		*test_alloc_fail()*