diff options
Diffstat (limited to 'src/testing.c')
-rw-r--r-- | src/testing.c | 6 |
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(); |