]> granicus.if.org Git - vim/commitdiff
patch 8.2.3632: GTK3: undercurl does not get removed properly v8.2.3632
authorYamagi <yamagi@yamagi.org>
Sat, 20 Nov 2021 20:42:29 +0000 (20:42 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 20 Nov 2021 20:42:29 +0000 (20:42 +0000)
Problem:    GTK3: undercurl does not get removed properly.
Solution:   Set the cairo cursor first. (closes #9170)

src/gui_gtk_x11.c
src/version.c

index 3ad1a623e575f44aed1e9a41e6afede08cf640eb..6135657fa20df9f9397a51b9710fbde30adf2aac 100644 (file)
@@ -5425,7 +5425,8 @@ draw_under(int flags, int row, int col, int cells)
        cairo_set_source_rgba(cr,
                gui.spcolor->red, gui.spcolor->green, gui.spcolor->blue,
                gui.spcolor->alpha);
-       for (i = FILL_X(col); i < FILL_X(col + cells); ++i)
+       cairo_move_to(cr, FILL_X(col) + 1, y - 2 + 0.5);
+       for (i = FILL_X(col) + 1; i < FILL_X(col + cells); ++i)
        {
            offset = val[i % 8];
            cairo_line_to(cr, i, y - offset + 0.5);
index 79eb94fa4144a4115ab4efdb860214f466a67d55..8eca0877d5f140f4fa38831cb6e697f71b235f49 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3632,
 /**/
     3631,
 /**/