diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-08 22:28:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-08 22:28:46 +0200 |
commit | 0b75f7c97cd7f2529884c48dca8edb02abda4bc5 (patch) | |
tree | f139b5554f4e4eb3037c3e1d0bfc58ec1ce6b20a /src/message.c | |
parent | 2f10658b06bbdd8f25c4ff152266c808234cee0a (diff) | |
download | vim-git-0b75f7c97cd7f2529884c48dca8edb02abda4bc5.tar.gz |
patch 8.1.1301: when compiled with VIMDLL some messages are not shownv8.1.1301
Problem: When compiled with VIMDLL some messages are not shown.
Solution: Set/reset gui.in_use and gui.starting as needed. (Ken Takata,
closes #4361)
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c index 038ccd640..7c256585d 100644 --- a/src/message.c +++ b/src/message.c @@ -2977,7 +2977,7 @@ mch_errmsg(char *str) int len; #endif -#if (defined(UNIX) || defined(FEAT_GUI)) && (!defined(ALWAYS_USE_GUI) || !defined(VIMDLL)) +#if (defined(UNIX) || defined(FEAT_GUI)) && !defined(ALWAYS_USE_GUI) && !defined(VIMDLL) /* On Unix use stderr if it's a tty. * When not going to start the GUI also use stderr. * On Mac, when started from Finder, stderr is the console. */ @@ -3080,7 +3080,7 @@ mch_msg_c(char *str) void mch_msg(char *str) { -#if (defined(UNIX) || defined(FEAT_GUI)) && (!defined(ALWAYS_USE_GUI) || !defined(VIMDLL)) +#if (defined(UNIX) || defined(FEAT_GUI)) && !defined(ALWAYS_USE_GUI) && !defined(VIMDLL) /* On Unix use stdout if we have a tty. This allows "vim -h | more" and * uses mch_errmsg() when started from the desktop. * When not going to start the GUI also use stdout. |