Skip to content

Commit 29b281b

Browse files
committed
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 #7276)
1 parent 232f461 commit 29b281b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/evalfunc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5513,7 +5513,7 @@ dynamic_feature(char_u *feature)
55135513
#ifdef VIMDLL
55145514
|| STRICMP(feature, "filterpipe") == 0
55155515
#endif
5516-
#if defined(FEAT_GUI) && !defined(ALWAYS_USE_GUI)
5516+
#if defined(FEAT_GUI) && !defined(ALWAYS_USE_GUI) && !defined(VIMDLL)
55175517
// this can only change on Unix where the ":gui" command could be
55185518
// used.
55195519
|| (STRICMP(feature, "gui_running") == 0 && !gui.in_use)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
1974,
753755
/**/
754756
1973,
755757
/**/

0 commit comments

Comments
 (0)