From: Richard M. Stallman Date: Sun, 19 Feb 2006 23:41:31 +0000 (+0000) Subject: (digest_single_submenu): When pane_string is empty, do initialize save_wv. X-Git-Tag: emacs-pretest-22.0.90~4021 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e33c22a5638db14fdd8055021aa77d250a86bd1a;p=emacs.git (digest_single_submenu): When pane_string is empty, do initialize save_wv. --- diff --git a/src/xmenu.c b/src/xmenu.c index ef41aec7b79..9b93822ecf5 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1807,8 +1807,11 @@ digest_single_submenu (start, end, top_level_items) wv->enabled = 1; wv->button_type = BUTTON_TYPE_NONE; wv->help = Qnil; + save_wv = wv; } - save_wv = wv; + else + save_wv = first_wv; + prev_wv = 0; i += MENU_ITEMS_PANE_LENGTH; }