]> granicus.if.org Git - neomutt/commitdiff
Enlarge buffers for printing menu entries from STRING to LONG_STRING.
authorRocco Rutte <pdmef@gmx.net>
Wed, 19 Sep 2007 10:22:05 +0000 (12:22 +0200)
committerRocco Rutte <pdmef@gmx.net>
Wed, 19 Sep 2007 10:22:05 +0000 (12:22 +0200)
Now that multibyte padding works, we may too soon run into too short
buffers for common terminal widths in graphical terminals.

ChangeLog
menu.c

index 7819ae4d1ecd57764a8d255637924de7bb873137..33993d68de5b710ba2fa4bb206eefd45334454b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-09-19 11:53 +0200  Rocco Rutte  <pdmef@gmx.net>  (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  <pdmef@gmx.net>  (5827331565a2)
+
+       * ChangeLog, init.h: Document that $charset is a fallback for
+       $send_charset
+
 2007-09-17 17:32 +0200  Rocco Rutte  <pdmef@gmx.net>  (ae47263fc1b0)
 
        * main.c: Backoug changeset 6f06b7f1f76f
diff --git a/menu.c b/menu.c
index 631bbed3aad22e2fedf8a9fe2326e6da29bbfd56..0e1782cfefe30073c6bbb66d0062b2f3278dc057 100644 (file)
--- 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);