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.
diff --git a/src/main.c b/src/main.c
index 81eb1a6..615858b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1356,7 +1356,9 @@
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