From 272ca95fc3d21ae1e2626a7aec38a6990e88ad6b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 28 Jan 2020 20:49:11 +0100 Subject: patch 8.2.0163: test hangs on MS-Windows console Problem: Test hangs on MS-Windows console. Solution: use feedkeys() instead of test_feedinput(). (Ken Takata) --- src/testing.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/testing.c') 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(); -- cgit v1.2.1