From 24b08dac99804bed30824e9becb6f773d5db1874 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 15 Mar 2025 02:46:39 +0300 Subject: Curses: use special ellipsis symbol instead of "..." when truncating strings This requires Unicode icon support to be enabled via ED. The ellipsis symbol is shorter and more distinctive, allowing more of the original text to be preserved before truncation. --- src/interface-curses/curses-icons.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/interface-curses/curses-icons.h') diff --git a/src/interface-curses/curses-icons.h b/src/interface-curses/curses-icons.h index 933241d..fce9d75 100644 --- a/src/interface-curses/curses-icons.h +++ b/src/interface-curses/curses-icons.h @@ -18,11 +18,15 @@ #include -/** - * Q-Register icon. - * 0xf04cf would look more similar to the current Gtk icon. - */ -#define TECO_CURSES_ICONS_QREG 0xe236 /*  */ +enum { + /** + * Q-Register icon. + * 0xf04cf would look more similar to the current Gtk icon. + */ + TECO_CURSES_ICONS_QREG = 0xe236, /*  */ + /** Ellipsis used for truncating text */ + TECO_CURSES_ICONS_ELLIPSIS = 0x2026 /* … */ +}; gunichar teco_curses_icons_lookup_file(const gchar *filename); gunichar teco_curses_icons_lookup_dir(const gchar *dirname); -- cgit v1.2.3