summaryrefslogtreecommitdiff
path: root/src/testing.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-28 20:49:11 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-28 20:49:11 +0100
commit272ca95fc3d21ae1e2626a7aec38a6990e88ad6b (patch)
tree54526fdfb9b2fbcc545e72868b510d06431fd063 /src/testing.c
parent7d8ea0b24191d64155fcf9e8d2d2eefff91ae549 (diff)
downloadvim-git-272ca95fc3d21ae1e2626a7aec38a6990e88ad6b.tar.gz
patch 8.2.0163: test hangs on MS-Windows consolev8.2.0163
Problem: Test hangs on MS-Windows console. Solution: use feedkeys() instead of test_feedinput(). (Ken Takata)
Diffstat (limited to 'src/testing.c')
-rw-r--r--src/testing.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testing.c b/src/testing.c
index 3ab9dcdc9..5dacf073b 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -640,6 +640,12 @@ f_test_feedinput(typval_T *argvars, typval_T *rettv UNUSED)
#ifdef USE_INPUT_BUF
char_u *val = tv_get_string_chk(&argvars[0]);
+# ifdef VIMDLL
+ // this doesn't work in the console
+ if (!gui.in_use)
+ return;
+# endif
+
if (val != NULL)
{
trash_input_buf();