Problem: When in Insert mode and using CTRL-O CTRL-W CTRL-W to move to a
termainal window, get in a weird Insert mode.
Solution: Don't go to Insert mode in a terminal window. (closes #1977)
}
#endif
+#ifdef FEAT_TERMINAL
+ /* don't go to Insert mode from Terminal-Job mode */
+ if (term_use_loop())
+ restart_edit = 0;
+#endif
+
/*
* May restart edit(), if we got here with CTRL-O in Insert mode (but not
* if still inside a mapping that started in Visual mode).
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 947,
/**/
946,
/**/