# HG changeset patch # User Bram Moolenaar # Date 1605038405 -3600 # Node ID eea4e7b67f242053b7ac247b3d70c9d23da602b2 # Parent ea83a529434d5565744ce9071135959b306a0293 patch 8.2.1974: Vim9: test for has('gui_running') fails with VIMDLL Commit: https://github.com/vim/vim/commit/29b281ba8ddf176ae34b22e6a9b8e0ddcbcce665 Author: Bram Moolenaar 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) diff --git a/src/evalfunc.c b/src/evalfunc.c --- 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) diff --git a/src/version.c b/src/version.c --- 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,