From 99af7690eb50b66bf9af44d0d71388dcdf26dfa9 Mon Sep 17 00:00:00 2001 From: Julio B Date: Fri, 29 Aug 2025 18:25:50 +0200 Subject: [PATCH] patch 9.1.1712: Screen not redrawn properly on t_RB response Problem: screen not redrawn properly on t_RB response (after v9.1.1703) Solution: Call redraw_asap() if necessary (Julio B) closes: #18149 Signed-off-by: Julio B Signed-off-by: Christian Brabandt --- src/term.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/term.c b/src/term.c index 88061e075a..829e566c6d 100644 --- a/src/term.c +++ b/src/term.c @@ -5740,8 +5740,11 @@ handle_osc(char_u *tp, int len, char_u *key_name, int *slen) #ifdef FEAT_EVAL set_vim_var_string_direct(VV_TERMOSC, osc_state.buf.ga_data); #endif + char_u savebg = *p_bg; apply_autocmds(EVENT_TERMRESPONSEALL, (char_u *)"osc", NULL, FALSE, curbuf); + if (*p_bg != savebg) + redraw_asap(UPD_CLEAR); return OK; } diff --git a/src/version.c b/src/version.c index e0543a06a0..afe7c45b61 100644 --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1712, /**/ 1711, /**/