0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-01-28 20:49:11 +01:00
parent 7d8ea0b241
commit 272ca95fc3
3 changed files with 15 additions and 6 deletions

View File

@@ -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();