From e3ccb0d305334b6b3be1ad045cbcdbb30d1e614c Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Wed, 19 Sep 2007 12:22:05 +0200 Subject: [PATCH] Enlarge buffers for printing menu entries from STRING to LONG_STRING. Now that multibyte padding works, we may too soon run into too short buffers for common terminal widths in graphical terminals. --- ChangeLog | 11 +++++++++++ menu.c | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7819ae4d1..33993d68d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2007-09-19 11:53 +0200 Rocco Rutte (5bc3cb8c8b68) + + * compose.c: Use mutt_paddstr() to print compose menu's status line + rather than printw(). All other menus use mutt_paddstr(): printw() + prints only N bytes, not N columns. + +2007-09-18 11:37 +0200 Rocco Rutte (5827331565a2) + + * ChangeLog, init.h: Document that $charset is a fallback for + $send_charset + 2007-09-17 17:32 +0200 Rocco Rutte (ae47263fc1b0) * main.c: Backoug changeset 6f06b7f1f76f diff --git a/menu.c b/menu.c index 631bbed3a..0e1782cfe 100644 --- a/menu.c +++ b/menu.c @@ -206,7 +206,7 @@ void menu_redraw_status (MUTTMENU *menu) void menu_redraw_index (MUTTMENU *menu) { - char buf[STRING]; + char buf[LONG_STRING]; int i; for (i = menu->top; i < menu->top + menu->pagelen; i++) @@ -262,7 +262,7 @@ void menu_redraw_index (MUTTMENU *menu) void menu_redraw_motion (MUTTMENU *menu) { - char buf[STRING]; + char buf[LONG_STRING]; if (menu->dialog) { @@ -322,7 +322,7 @@ void menu_redraw_motion (MUTTMENU *menu) void menu_redraw_current (MUTTMENU *menu) { - char buf[STRING]; + char buf[LONG_STRING]; move (menu->current + menu->offset - menu->top, 0); menu_make_entry (buf, sizeof (buf), menu, menu->current); -- 2.50.1