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

patch 8.0.0873: in terminal cannot use CTRL-\ CTRL-N to start Visual mode

Problem:    In a terminal window cannot use CTRL-\ CTRL-N to start Visual
            mode.
Solution:   After CTRL-\ CTRL-N enter Terminal-Normal mode for one command.
This commit is contained in:
Bram Moolenaar
2017-08-05 20:17:00 +02:00
parent 98fd66d311
commit aaa8a35fbd
4 changed files with 58 additions and 26 deletions

View File

@@ -1356,7 +1356,9 @@ main_loop(
else
{
#ifdef FEAT_TERMINAL
if (term_use_loop() && oa.op_type == OP_NOP && oa.regname == NUL)
if (term_use_loop(TRUE)
&& oa.op_type == OP_NOP && oa.regname == NUL
&& !VIsual_active)
{
/* If terminal_loop() returns OK we got a key that is handled
* in Normal model. With FAIL the terminal was closed and the