]> git.eshelyaron.com Git - emacs.git/commitdiff
(xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
authorGerd Moellmann <gerd@gnu.org>
Mon, 28 May 2001 16:20:48 +0000 (16:20 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 28 May 2001 16:20:48 +0000 (16:20 +0000)
an item's name with its key description in case the description
is a multibyte string.

src/xmenu.c

index 6317c126286979ea43bf3353c46268d99173363f..e87743b005715d02229a6c8934e8b4e40dec67ef 100644 (file)
@@ -2077,7 +2077,7 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
           if (STRINGP (item_name) && STRING_MULTIBYTE (item_name))
             item_name = string_make_unibyte (item_name);
           if (STRINGP (descrip) && STRING_MULTIBYTE (descrip))
-            item_name = string_make_unibyte (descrip);
+            descrip = string_make_unibyte (descrip);
 #endif
  
          wv = xmalloc_widget_value ();