summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-07-29 20:16:03 +0200
committerBram Moolenaar <Bram@vim.org>2017-07-29 20:16:03 +0200
commit91d348abfc0d7ac9b5b19cde0112de8ae4335602 (patch)
tree244fb1e710724921fcb6b70b177066d46520f746 /src/eval.c
parentc6df10e5d33ffab2c392626e285317ea8241ebff (diff)
downloadvim-git-91d348abfc0d7ac9b5b19cde0112de8ae4335602.tar.gz
patch 8.0.0804: running tests fails when stdin is /dev/nullv8.0.0804
Problem: Running tests fails when stdin is /dev/null. (James McCoy) Solution: Do not bail out from getting input if the --not-a-term argument was given. (closes #1460)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 4cb32893f..c35def0b2 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -8070,8 +8070,9 @@ get_user_input(
rettv->vval.v_string = NULL;
#ifdef NO_CONSOLE_INPUT
- /* While starting up, there is no place to enter text. */
- if (no_console_input())
+ /* While starting up, there is no place to enter text. When running tests
+ * with --not-a-term we assume feedkeys() will be used. */
+ if (no_console_input() && !is_not_a_term())
return;
#endif