From 5834ace82358d0f9e957394d8399ce57a7662821 Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 29 Dec 2015 15:09:50 -0800 Subject: [PATCH] fix 'doterrain menu bug' From a report sent directly to devteam: the #terrain command had the same bug as the '`' command (which was one of the very first ones reported): impossible("add_menu called before start_menu"). Only X11 notices. --- doc/fixes36.1 | 4 ++-- src/cmd.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/fixes36.1 b/doc/fixes36.1 index 9b33f06c8..5465960ad 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -92,8 +92,8 @@ MacOSX: initial binary release was built from out of date source code that had 'BETA' and 'DEBUG' inappropriately enabled MacOSX: force TIMED_DELAY build option on so that 'runmode' run-time option is functional -X11: core bug for '`' (backtick) command was only noticed by X11 interface, - which issued impossible message "add_menu: called before start_menu" +X11: core bug for '`' (backtick) and #terrain commands was only noticed by + X11 interface: impossible "add_menu: called before start_menu" General New Features diff --git a/src/cmd.c b/src/cmd.c index 51fd17f70..191ab71f3 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1176,6 +1176,7 @@ doterrain(VOID_ARGS) * a legend for the levl[][].typ codes dump */ men = create_nhwindow(NHW_MENU); + start_menu(men); any = zeroany; any.a_int = 1; add_menu(men, NO_GLYPH, &any, 0, 0, ATR_NONE, -- 2.40.0