summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-07-16 20:13:26 +0200
committerBram Moolenaar <Bram@vim.org>2017-07-16 20:13:26 +0200
commit938783d0ab5678c259ceb62b15be72abe69362fa (patch)
tree4baad1c5b7a49ff10ba0b1a4b1814d194ec56ca6 /src/main.c
parente45deb79978677cb41f1477ba4140bccff658fd1 (diff)
downloadvim-938783d0ab5678c259ceb62b15be72abe69362fa.zip
patch 8.0.0725: a terminal window does not handle keyboard input
Problem: A terminal window does not handle keyboard input. Solution: Add terminal_loop(). ":term bash -i" sort of works now.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6e21f7314..268c25627 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1354,7 +1354,14 @@ main_loop(
do_exmode(exmode_active == EXMODE_VIM);
}
else
+ {
+#ifdef FEAT_TERMINAL
+ if (curbuf->b_term != NULL && oa.op_type == OP_NOP
+ && oa.regname == NUL)
+ terminal_loop();
+#endif
normal_cmd(&oa, TRUE);
+ }
}
}