diff src/ex_docmd.c @ 13866:4b35f2835ce4 v8.0.1804

patch 8.0.1804: using :normal in terminal window causes problems commit https://github.com/vim/vim/commit/655a82a8d32c2cd248a46c0ce365a4d50e3d56bd Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 8 22:01:07 2018 +0200 patch 8.0.1804: using :normal in terminal window causes problems Problem: Using :normal in terminal window causes problems. (Dominique Pelle) Solution: Don't call terminal_loop() for :normal. (closes #2886)
author Christian Brabandt <cb@256bit.org>
date Tue, 08 May 2018 22:15:05 +0200
parents 044337cbf854
children bccd66fa00c1
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -10323,14 +10323,14 @@ exec_normal_cmd(char_u *cmd, int remap, 
 {
     /* Stuff the argument into the typeahead buffer. */
     ins_typebuf(cmd, remap, 0, TRUE, silent);
-    exec_normal(FALSE);
+    exec_normal(FALSE, FALSE);
 }
 
 /*
  * Execute normal_cmd() until there is no typeahead left.
  */
     void
-exec_normal(int was_typed)
+exec_normal(int was_typed, int may_use_terminal_loop UNUSED)
 {
     oparg_T	oa;
 
@@ -10341,7 +10341,7 @@ exec_normal(int was_typed)
     {
 	update_topline_cursor();
 #ifdef FEAT_TERMINAL
-	if (term_use_loop()
+	if (may_use_terminal_loop && term_use_loop()
 		&& oa.op_type == OP_NOP && oa.regname == NUL
 		&& !VIsual_active)
 	{