]> granicus.if.org Git - vim/commitdiff
patch 8.2.1974: Vim9: test for has('gui_running') fails with VIMDLL v8.2.1974
authorBram Moolenaar <Bram@vim.org>
Tue, 10 Nov 2020 19:58:00 +0000 (20:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 10 Nov 2020 19:58:00 +0000 (20:58 +0100)
Problem:    Vim9: test for has('gui_running') fails with VIMDLL.
Solution:   Adjust the #ifdef. (Ken Takata, closes #7276)

src/evalfunc.c
src/version.c

index b5f1c00516391a21347879e5e667f35ddeb2f2d4..8c090e3615cc133bc5016a32f5805207956fcb51 100644 (file)
@@ -5513,7 +5513,7 @@ dynamic_feature(char_u *feature)
 #ifdef VIMDLL
            || STRICMP(feature, "filterpipe") == 0
 #endif
-#if defined(FEAT_GUI) && !defined(ALWAYS_USE_GUI)
+#if defined(FEAT_GUI) && !defined(ALWAYS_USE_GUI) && !defined(VIMDLL)
            // this can only change on Unix where the ":gui" command could be
            // used.
            || (STRICMP(feature, "gui_running") == 0 && !gui.in_use)
index 8535ac554de6445b0a32314a731431bbd4ef81cc..06fa4d041c86f72947f1a0488541b23cdca001d6 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1974,
 /**/
     1973,
 /**/