1
0
forked from aniani/vim

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

@@ -8228,7 +8228,7 @@ set_bool_option(
{
# ifdef FEAT_TERMINAL
/* Cannot set 'modifiable' when in Terminal mode. */
if (term_in_terminal_mode()
if (term_in_normal_mode()
|| (bt_terminal(curbuf) && !term_is_finished(curbuf)))
{
curbuf->b_p_ma = FALSE;