]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0668: GTK4: minimum horizontal size is too small v9.2.0668
authorFoxe Chen <chen.foxe@gmail.com>
Wed, 17 Jun 2026 19:48:01 +0000 (19:48 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 17 Jun 2026 19:48:01 +0000 (19:48 +0000)
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 <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_gtk4_f.c
src/version.c

index 4bd22db3f474dbe5a08ceda875802afb33a5bd80..cd71122b1e773ec693129a5e8b3a6949ad9fb28f 100644 (file)
@@ -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)
index 2d3e2550edc18bca790b4fc191706cafe95e3069..c404029ad86a0829497fd99e5a1a28db46a569ee 100644 (file)
@@ -759,6 +759,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    668,
 /**/
     667,
 /**/