From 09917757737d65fbb5bbcd57427a8e0528b87119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerd=20M=C3=B6llmann?= Date: Mon, 9 Dec 2024 05:20:29 +0100 Subject: [PATCH] Support menu separator types in tty menus (bug#74740) * src/xdisp.c (display_tty_menu_item): Display "--" If a menu item's text looks like a separator. --- src/xdisp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 534c0520240..abbe665a2fd 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -27333,6 +27333,9 @@ display_tty_menu_item (const char *item_text, int width, int face_id, display_string (" >", Qnil, Qnil, 0, 0, &it, width, 0, FRAME_COLS (f) - 1, -1); } + else if (menu_separator_name_p (item_text)) + display_string ("--", Qnil, Qnil, 0, 0, &it, + width, 0, FRAME_COLS (f) - 1, -1); else display_string (item_text, Qnil, Qnil, 0, 0, &it, width, 0, FRAME_COLS (f) - 1, -1); -- 2.47.1