You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sidebar-compose.patch 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From: Evgeni Golov <evgeni@debian.org>
  2. Date: Fri, 14 Mar 2014 08:54:47 +0100
  3. Subject: sidebar-compose
  4. draw_sidebar sets SidebarWidth to 0 when sidebar_visible is false.
  5. However, if you start mutt in compose mode, draw_sidebar won't be
  6. called until the next redraw and your header lines will be off by
  7. the width of the sidebar, even when you did not want a sidebar at
  8. all.
  9. Can be tested with:
  10. HOME=/ LC_ALL=C mutt -e 'unset sidebar_visible' -s test recipient
  11. Closes: #502627
  12. Gbp-Pq: Topic mutt-patched
  13. ---
  14. compose.c | 2 ++
  15. 1 file changed, 2 insertions(+)
  16. diff --git a/compose.c b/compose.c
  17. index 5a14d70..16576f2 100644
  18. --- a/compose.c
  19. +++ b/compose.c
  20. @@ -32,6 +32,7 @@
  21. #include "mailbox.h"
  22. #include "sort.h"
  23. #include "charset.h"
  24. +#include "sidebar.h"
  25. #ifdef MIXMASTER
  26. #include "remailer.h"
  27. @@ -245,6 +246,7 @@ static void draw_envelope_addr (int line, ADDRESS *addr)
  28. static void draw_envelope (HEADER *msg, char *fcc)
  29. {
  30. + draw_sidebar (MENU_COMPOSE);
  31. draw_envelope_addr (HDR_FROM, msg->env->from);
  32. draw_envelope_addr (HDR_TO, msg->env->to);
  33. draw_envelope_addr (HDR_CC, msg->env->cc);