Mercurial > vim
diff src/normal.c @ 11684:1ce1376fbbf8 v8.0.0725
patch 8.0.0725: a terminal window does not handle keyboard input
commit https://github.com/vim/vim/commit/938783d0ab5678c259ceb62b15be72abe69362fa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 16 20:13:26 2017 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 16 Jul 2017 20:15:03 +0200 |
parents | 998d2cf59caa |
children | be40c8a9240d |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -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);