patch 9.2.0668: GTK4: minimum horizontal size is too small
Commit:
https://github.com/vim/vim/commit/6df53ec35d03fd3a8ff12515dd49a35ba4fbaad0
Author: Foxe Chen <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1wZwQf-002le0-Mr%40256bit.org.