]> granicus.if.org Git - vim/commitdiff
patch 9.0.0945: failures in the cursorline test v9.0.0945
authorBram Moolenaar <Bram@vim.org>
Thu, 24 Nov 2022 23:04:02 +0000 (23:04 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 24 Nov 2022 23:04:02 +0000 (23:04 +0000)
Problem:    Failures in the cursorline test.
Solution:   Reset extra_attr only after a text property.

src/drawline.c
src/version.c

index e6fdd7a0bd898e070d190d99cc54fdff1b12ed78..408f2d5bdb4c2b29cf6f92b24e41fb8b646c9300 100644 (file)
@@ -2403,9 +2403,6 @@ win_line(
 #if defined(FEAT_PROP_POPUP)
            if (wlv.n_extra <= 0)
            {
-               wlv.extra_for_textprop = FALSE;
-               in_linebreak = FALSE;
-
                // Only restore search_attr and area_attr after "n_extra" in
                // the next screen line is also done.
                if (wlv.saved_n_extra <= 0)
@@ -2414,10 +2411,15 @@ win_line(
                        search_attr = saved_search_attr;
                    if (area_attr == 0 && *ptr != NUL)
                        area_attr = saved_area_attr;
-                   // wlv.extra_attr should be used at this position but not
-                   // any further.
-                   reset_extra_attr = TRUE;
+
+                   if (wlv.extra_for_textprop)
+                       // wlv.extra_attr should be used at this position but
+                       // not any further.
+                       reset_extra_attr = TRUE;
                }
+
+               wlv.extra_for_textprop = FALSE;
+               in_linebreak = FALSE;
            }
 #endif
        }
index b234cce90b02d985186aa1d5c45ae50eed9fce7f..875252892085a733e7e03e6684ae47f61cad43d9 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    945,
 /**/
     944,
 /**/