commit | 272ca95fc3d21ae1e2626a7aec38a6990e88ad6b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 28 20:49:11 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 28 20:49:11 2020 +0100 |
tree | 54526fdfb9b2fbcc545e72868b510d06431fd063 | |
parent | 7d8ea0b24191d64155fcf9e8d2d2eefff91ae549 [diff] [blame] |
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)
diff --git a/src/testing.c b/src/testing.c index 3ab9dcd..5dacf07 100644 --- a/src/testing.c +++ b/src/testing.c
@@ -640,6 +640,12 @@ #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();