changeset 22854:eea4e7b67f24 v8.2.1974

patch 8.2.1974: Vim9: test for has('gui_running') fails with VIMDLL Commit: https://github.com/vim/vim/commit/29b281ba8ddf176ae34b22e6a9b8e0ddcbcce665 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 10 20:58:00 2020 +0100 patch 8.2.1974: Vim9: test for has('gui_running') fails with VIMDLL Problem: Vim9: test for has('gui_running') fails with VIMDLL. Solution: Adjust the #ifdef. (Ken Takata, closes https://github.com/vim/vim/issues/7276)
author Bram Moolenaar <Bram@vim.org>
date Tue, 10 Nov 2020 21:00:05 +0100
parents ea83a529434d
children eb8514ea9e59
files src/evalfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -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)
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1974,
+/**/
     1973,
 /**/
     1972,