summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-03-22 23:06:55 +0000
committerBram Moolenaar <Bram@vim.org>2005-03-22 23:06:55 +0000
commit43b604cddcd655225cde7696a54b429746cb8876 (patch)
tree1766d7f34511db87e8c3569d6b7408d6b48d9be2 /src/ui.c
parent6bb683663ad7ae9c303284c335a731a13233c6c2 (diff)
downloadvim-43b604cddcd655225cde7696a54b429746cb8876.zip
updated for version 7.0063
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 0941a3799..bb41f362f 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -153,8 +153,9 @@ ui_inchar(buf, maxlen, wtime, tb_change_cnt)
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)