projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include little patch from Michael Prokop which fixes the black stripes
[apps/madmutt.git]
/
muttlib.c
diff --git
a/muttlib.c
b/muttlib.c
index
22d4c76
..
2e34fad
100644
(file)
--- a/
muttlib.c
+++ b/
muttlib.c
@@
-1029,7
+1029,7
@@
void mutt_FormatString (char *dest, /* output buffer */
if ( DrawFullLine )
count = (COLS < destlen ? COLS : destlen);
else
if ( DrawFullLine )
count = (COLS < destlen ? COLS : destlen);
else
- count = ((COLS
-SidebarWidth) < destlen ? COLS - SidebarWidth
: destlen);
+ count = ((COLS
) < destlen ? (COLS)
: destlen);
if (count > col)
{
count -= col; /* how many columns left on this line */
if (count > col)
{
count -= col; /* how many columns left on this line */
@@
-1042,8
+1042,10
@@
void mutt_FormatString (char *dest, /* output buffer */
wptr += count;
col += count;
}
wptr += count;
col += count;
}
- if (
len
+ wlen > destlen)
+ if (
wid
+ wlen > destlen)
len = destlen - wlen;
len = destlen - wlen;
+ else
+ len = wid;
memcpy (wptr, buf, len);
wptr += len;
wlen += len;
memcpy (wptr, buf, len);
wptr += len;
wlen += len;
@@
-1327,7
+1329,8
@@
int state_printf (STATE *s, const char *fmt, ...)
void state_mark_attach (STATE *s)
{
if ((s->flags & M_DISPLAY) && !mutt_strcmp (Pager, "builtin"))
void state_mark_attach (STATE *s)
{
if ((s->flags & M_DISPLAY) && !mutt_strcmp (Pager, "builtin"))
- state_puts (AttachmentMarker, s);
+ //state_puts (AttachmentMarker, s);
+ ;
}
void state_attach_puts (const char *t, STATE *s)
}
void state_attach_puts (const char *t, STATE *s)