changeset 69017:3293c81b59b1

(digest_single_submenu): When pane_string is empty, do initialize save_wv.
author Richard M. Stallman <rms@gnu.org>
date Sun, 19 Feb 2006 23:41:31 +0000
parents 16cf29541f7b
children d3feed421791
files src/xmenu.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Sun Feb 19 23:40:25 2006 +0000
+++ b/src/xmenu.c	Sun Feb 19 23:41:31 2006 +0000
@@ -1807,8 +1807,11 @@
 	      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;
 	}