From: Foxe Chen Date: Wed, 17 Jun 2026 19:48:01 +0000 (+0000) Subject: patch 9.2.0668: GTK4: minimum horizontal size is too small X-Git-Tag: v9.2.0668^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6df53ec35d03fd3a8ff12515dd49a35ba4fbaad0;p=thirdparty%2Fvim.git patch 9.2.0668: GTK4: minimum horizontal size is too small Problem: GTK4: minimum horizontal size is too small Solution: Update minimum width of form widget to 20 columns for gtk4 gui (Foxe Chen). closes: #20542 Signed-off-by: Foxe Chen Signed-off-by: Christian Brabandt --- diff --git a/src/gui_gtk4_f.c b/src/gui_gtk4_f.c index 4bd22db3f4..cd71122b1e 100644 --- a/src/gui_gtk4_f.c +++ b/src/gui_gtk4_f.c @@ -271,11 +271,12 @@ vim_form_measure( } else { - // Set minimum width of form widget to 10 columns. + // Set minimum width of form widget to 20 columns. Any less and the draw + // area seems to glitch out... if (minimum != NULL) - *minimum = gui.char_width * 10; + *minimum = gui.char_width * 20; if (natural != NULL) - *natural = gui.char_width * 10; + *natural = gui.char_width * 20; } if (minimum_baseline != NULL) diff --git a/src/version.c b/src/version.c index 2d3e2550ed..c404029ad8 100644 --- a/src/version.c +++ b/src/version.c @@ -759,6 +759,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 668, /**/ 667, /**/