diff src/main.c @ 11993:92a86fe8adc0 v8.0.0877

patch 8.0.0877: using CTRL- CTRL-N in terminal is inconsistent commit https://github.com/vim/vim/commit/6d8197485dc84532e37aced2c39292bff374200d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 6 14:57:49 2017 +0200 patch 8.0.0877: using CTRL-\ CTRL-N in terminal is inconsistent Problem: Using CTRL-\ CTRL-N in terminal is inconsistent. Solution: Stay in Normal mode.
author Christian Brabandt <cb@256bit.org>
date Sun, 06 Aug 2017 15:00:04 +0200
parents d036c1c8537d
children 9e5f310b0713
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -1356,13 +1356,13 @@ main_loop(
 	else
 	{
 #ifdef FEAT_TERMINAL
-	    if (term_use_loop(TRUE)
+	    if (term_use_loop()
 		    && 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
-		 * screen needs to be redrawn. */
+		 * in Normal model.  With FAIL we first need to position the
+		 * cursor and the screen needs to be redrawn. */
 		if (terminal_loop() == OK)
 		    normal_cmd(&oa, TRUE);
 	    }