# HG changeset patch # User Bram Moolenaar # Date 1637441103 -3600 # Node ID a0f4b96a813a6f397ec494ae26515b63a068b85b # Parent aeff0cbd3cb32a000237f10ec642dfbac56eaa58 patch 8.2.3632: GTK3: undercurl does not get removed properly Commit: https://github.com/vim/vim/commit/9cd9385db7d1d2b2dc38a511d121e366a5dae511 Author: Yamagi Date: Sat Nov 20 20:42:29 2021 +0000 patch 8.2.3632: GTK3: undercurl does not get removed properly Problem: GTK3: undercurl does not get removed properly. Solution: Set the cairo cursor first. (closes https://github.com/vim/vim/issues/9170) diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -5425,7 +5425,8 @@ draw_under(int flags, int row, int col, 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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3632, +/**/ 3631, /**/ 3630,