diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-10 20:31:17 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-10 20:34:39 -0400 |
commit | de2e86a698bb5a7dcd9119947cbeb272dc821bb1 (patch) | |
tree | 2a5d19ba36d0407e9607a6d68ed02e412d5b0726 | |
parent | 21b108fe445452e6e35621184fc77623dc64f9a3 (diff) | |
download | rneovim-de2e86a698bb5a7dcd9119947cbeb272dc821bb1.tar.gz rneovim-de2e86a698bb5a7dcd9119947cbeb272dc821bb1.tar.bz2 rneovim-de2e86a698bb5a7dcd9119947cbeb272dc821bb1.zip |
vim-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.
https://github.com/vim/vim/commit/938783d0ab5678c259ceb62b15be72abe69362fa
-rw-r--r-- | src/nvim/normal.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index abee28e37e..ad811a101a 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -6526,8 +6526,12 @@ static void n_start_visual_mode(int c) */ static void nv_window(cmdarg_T *cap) { - if (!checkclearop(cap->oap)) - do_window(cap->nchar, cap->count0, NUL); /* everything is in window.c */ + 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 + } } /* |