Skip to content

Commit

Permalink
vimdll: Don't add "Detach" menu item on console
Browse files Browse the repository at this point in the history
Tearoff menu works only on GUI.
  • Loading branch information
k-takata committed Nov 29, 2019
1 parent 093ab26 commit 99fce97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 99fce97

Please sign in to comment.