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.
diff --git a/src/normal.c b/src/normal.c
index 88f604d..24ab06d 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -4639,7 +4639,7 @@
if (cap->arg == MSCR_UP || cap->arg == MSCR_DOWN)
{
# ifdef FEAT_TERMINAL
- if (term_use_loop(FALSE))
+ if (term_use_loop())
send_keys_to_term(curbuf->b_term, cap->cmdchar, TRUE);
else
# endif
@@ -9061,10 +9061,10 @@
#endif
}
#ifdef FEAT_TERMINAL
- else if (term_in_terminal_mode())
+ else if (term_in_normal_mode())
{
clearop(cap->oap);
- term_leave_terminal_mode();
+ term_enter_job_mode();
return;
}
#endif