Skip to content

Commit d9c6064

Browse files
committed
patch 8.0.0244: making t_BE empty only has an effect before startup
Problem: When the user sets t_BE empty after startup to disable bracketed paste, this has no direct effect. Solution: When t_BE is made empty write t_BD. When t_BE is made non-empty write the new value.
1 parent cc5b22b commit d9c6064

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/option.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6619,6 +6619,15 @@ did_set_string_option(
66196619
mch_set_normal_colors();
66206620
#endif
66216621
}
6622+
if (varp == &T_BE && termcap_active)
6623+
{
6624+
if (*T_BE == NUL)
6625+
/* When clearing t_BE we assume the user no longer wants
6626+
* bracketed paste, thus disable it by writing t_BD. */
6627+
out_str(T_BD);
6628+
else
6629+
out_str(T_BE);
6630+
}
66226631
}
66236632

66246633
#ifdef FEAT_LINEBREAK

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
244,
767769
/**/
768770
243,
769771
/**/

0 commit comments

Comments
 (0)