patch 9.2.0668: GTK4: minimum horizontal size is too small
Commit:
https://github.com/vim/vim/commit/6df53ec35d03fd3a8ff12515dd49a35ba4fbaad0
Author: Foxe Chen <
chen...@gmail.com>
Date: Wed Jun 17 19:48:01 2026 +0000
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 <
chen...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/gui_gtk4_f.c b/src/gui_gtk4_f.c
index 4bd22db3f..cd71122b1 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 2d3e2550e..c404029ad 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,
/**/