aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 9b9ecab6f3c..3e272cae31f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -895,6 +895,13 @@ x_set_menu_bar_lines (f, value, oldval)
895 int nlines; 895 int nlines;
896 int olines = FRAME_MENU_BAR_LINES (f); 896 int olines = FRAME_MENU_BAR_LINES (f);
897 897
898 /* Right now, menu bars don't work properly in minibuf-only frames;
899 most of the commands try to apply themselves to the minibuffer
900 frame itslef, and get an error because you can't switch buffers
901 in or split the minibuffer window. */
902 if (FRAME_MINBUF_ONLY_P (f))
903 return;
904
898 if (XTYPE (value) == Lisp_Int) 905 if (XTYPE (value) == Lisp_Int)
899 nlines = XINT (value); 906 nlines = XINT (value);
900 else 907 else