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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user