summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-29 23:15:25 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-29 23:15:25 +0100
commit310c32e8920140f0db747c6c6eb06b1ee53cdb5a (patch)
tree6a63306e6627614a8f3b9b543f129323f3093f86 /src/menu.c
parent15a7bdcb77faabbd3a9a889957f810da2bcda13e (diff)
downloadvim-git-310c32e8920140f0db747c6c6eb06b1ee53cdb5a.tar.gz
patch 8.1.2361: MS-Windows: test failures related to VIMDLLv8.1.2361
Problem: MS-Windows: test failures related to VIMDLL. Solution: Adjust code and tests. (Ken Takata, closes #5283)
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c
index e55cab675..26327941c 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -685,7 +685,11 @@ add_menu_path(
if ( addtearoff
&& *next_name
&& vim_strchr(p_go, GO_TEAROFF) != NULL
- && menu_is_menubar(name))
+ && menu_is_menubar(name)
+# ifdef VIMDLL
+ && (gui.in_use || gui.starting)
+# endif
+ )
{
char_u *tearpath;