Re: [PATCH] attachment tree improvement
Dennis Preiser <onkelp <at> gmx.de>
2010-10-29 14:39:24 GMT
On Sun, Oct 17, 2010 at 07:17:51PM +0200, Dennis Preiser wrote:
> It turns out that the current code does not handle deeply nested
> attachments very well. Attached patch changes the behavior the following
> The attachment tree behaves like the thread tree now, so it 'wraps' if
> the right edge (minus strlen(txt_attachment_no_name)) is reached. I
> adopted the code from thread.c:make_prefix() for this.
Attached a revised version of this patch which supersedes the previous
one. The screen layout now depends on the screenwidth and on whether the
tree wraps or not. If the tree wraps, the tree gets more space, if the
tree does not wrap, the info at the right side gets more space.
In addition, the patch fixes the broken Attachment Menu when building
with '--with-screen=termcap'. The menu was not properly drawn in this