summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-08 22:28:46 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-08 22:28:46 +0200
commit0b75f7c97cd7f2529884c48dca8edb02abda4bc5 (patch)
treef139b5554f4e4eb3037c3e1d0bfc58ec1ce6b20a /src/gui_w32.c
parent2f10658b06bbdd8f25c4ff152266c808234cee0a (diff)
downloadvim-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/gui_w32.c')
-rw-r--r--src/gui_w32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 7bea58e97..69212ebb7 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -4827,6 +4827,10 @@ ole_error(char *arg)
{
char buf[IOSIZE];
+# ifdef VIMDLL
+ gui.in_use = mch_is_gui_executable();
+# endif
+
/* Can't use emsg() here, we have not finished initialisation yet. */
vim_snprintf(buf, IOSIZE,
_("E243: Argument not supported: \"-%s\"; Use the OLE version."),