Skip to content
Permalink
Browse files
patch 8.0.1589: error for setting 'modifiable' when resetting it
Problem:    Error for setting 'modifiable' when resetting it.
Solution:   Check if 'modifiable' was actually set.
  • Loading branch information
brammool committed Mar 7, 2018
1 parent 52f18a1 commit d7db27bafd1045281c965d9483539748a744de70
Showing with 4 additions and 2 deletions.
  1. +2 −2 src/option.c
  2. +2 −0 src/version.c
@@ -8190,8 +8190,8 @@ set_bool_option(
{
# ifdef FEAT_TERMINAL
/* Cannot set 'modifiable' when in Terminal mode. */
if (term_in_normal_mode()
|| (bt_terminal(curbuf) && !term_is_finished(curbuf)))
if (curbuf->b_p_ma && (term_in_normal_mode() || (bt_terminal(curbuf)
&& curbuf->b_term != NULL && !term_is_finished(curbuf))))
{
curbuf->b_p_ma = FALSE;
return (char_u *)N_("E946: Cannot make a terminal with running job modifiable");
@@ -766,6 +766,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1589,
/**/
1588,
/**/

0 comments on commit d7db27b

Please sign in to comment.