Mercurial > vim
diff src/evalfunc.c @ 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 | 36fc73078bce |
children | a8bccb0634bc |
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)