0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2017-07-16 20:13:26 +02:00
parent e45deb7997
commit 938783d0ab
5 changed files with 121 additions and 12 deletions

View File

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