0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -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

@@ -7846,7 +7846,10 @@ n_start_visual_mode(int c)
nv_window(cmdarg_T *cap)
{
#ifdef FEAT_WINDOWS
if (!checkclearop(cap->oap))
if (cap->nchar == ':')
/* "CTRL-W :" is the same as typing ":"; useful in a terminal window */
nv_colon(cap);
else if (!checkclearop(cap->oap))
do_window(cap->nchar, cap->count0, NUL); /* everything is in window.c */
#else
(void)checkclearop(cap->oap);