0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2017-08-06 14:57:49 +02:00
parent 39d21e3c30
commit 6d8197485d
6 changed files with 55 additions and 63 deletions

View File

@@ -4639,7 +4639,7 @@ nv_mousescroll(cmdarg_T *cap)
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 @@ nv_edit(cmdarg_T *cap)
#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