diff src/ui.c @ 228:d97518d6b325 v7.0063

updated for version 7.0063
author vimboss
date Tue, 22 Mar 2005 23:06:55 +0000
parents 8c60f65311fa
children 73354c21f1e4
line wrap: on
line diff
--- a/src/ui.c
+++ b/src/ui.c
@@ -153,8 +153,9 @@ ui_inchar(buf, maxlen, wtime, tb_change_
 	static int count = 0;
 
 # ifndef NO_CONSOLE
-	retval = mch_inchar(buf, maxlen, 10L, tb_change_cnt);
-	if (retval > 0 || typebuf_changed(tb_change_cnt))
+	retval = mch_inchar(buf, maxlen, (wtime >= 0 && wtime < 10)
+						? 10L : wtime, tb_change_cnt);
+	if (retval > 0 || typebuf_changed(tb_change_cnt) || wtime >= 0)
 	    goto theend;
 # endif
 	if (wtime == -1 && ++count == 1000)