Commit: patch 9.2.0876: GTK4: compile error with disabled netbeans feat

Christian Brabandt <[email protected]> Thu, 30 Jul 2026 20:45:03 +0200
Newsgroups gmane.editors.vim.devel
Message-ID <[email protected]>
patch 9.2.0876: GTK4: compile error with disabled netbeans feat

Commit: https://github.com/vim/vim/commit/fa285ef8dce38c05102975e69c0bd1fc7b781fba
Author: Foxe Chen <[email protected]>
Date:   Thu Jul 30 18:23:25 2026 +0000

    patch 9.2.0876: GTK4: compile error with disabled netbeans feat
    
    Problem:  GTK4: compile error with disabled netbeans feature
    Solution: Add ifdefs (Foxe Chen)
    
    closes: #20879
    
    Signed-off-by: Foxe Chen <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/gui_gtk4.c b/src/gui_gtk4.c
index 45ee9f505..f5fb4487d 100644
--- a/src/gui_gtk4.c
+++ b/src/gui_gtk4.c
@@ -345,6 +345,7 @@ gui_mch_prepare(int *argc, char **argv)
 	else if (arg_match(s, "-fg", &value)
 		|| arg_match(s, "-foreground", &value))
 	    foreground_argument = value;
+#ifdef FEAT_NETBEANS_INTG
 	else if (strncmp(s, "-nb", 3) == 0)
 	{
 	    gui.dofork = false; // don't fork() when starting GUI
@@ -352,6 +353,7 @@ gui_mch_prepare(int *argc, char **argv)
 	    has_inline_value = TRUE; // -nb uses non standard syntax, just
 				     // remove the flag.
 	}
+#endif
 	else if (arg_match(s, "--prg-name", &value))
 	    // GTK4 specific
 	    prgname = value;
diff --git a/src/version.c b/src/version.c
index 0f6a47422..e921a5c36 100644
--- 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 */
+/**/
+    876,
 /**/
     875,
 /**/

-- 
-- 
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/E1wpVkd-004YW6-Th%40256bit.org.