diff --git a/src/option.c b/src/option.c index cc68cdfd5b..a987a4cdf8 100644 --- a/src/option.c +++ b/src/option.c @@ -6619,6 +6619,15 @@ did_set_string_option( mch_set_normal_colors(); #endif } + if (varp == &T_BE && termcap_active) + { + if (*T_BE == NUL) + /* When clearing t_BE we assume the user no longer wants + * bracketed paste, thus disable it by writing t_BD. */ + out_str(T_BD); + else + out_str(T_BE); + } } #ifdef FEAT_LINEBREAK diff --git a/src/version.c b/src/version.c index d86705f241..e0f23d0c9e 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 244, /**/ 243, /**/