projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the rest of mutt "things" into a window as well.
[apps/madmutt.git]
/
lib-mime
/
rfc3676.c
diff --git
a/lib-mime/rfc3676.c
b/lib-mime/rfc3676.c
index
253c231
..
3caa76f
100644
(file)
--- a/
lib-mime/rfc3676.c
+++ b/
lib-mime/rfc3676.c
@@
-13,7
+13,7
@@
#include <utime.h>
#include <utime.h>
-#include <lib-ui/
curses
.h>
+#include <lib-ui/
lib-ui
.h>
#include "state.h"
#include "rfc3676.h"
#include "state.h"
#include "rfc3676.h"
@@
-42,15
+42,12
@@
static void print_flowed_line (char *line, STATE * s, int ql) {
width = MaxLineLength;
}
else {
width = MaxLineLength;
}
else {
- if (option (OPTMBOXPANE))
- width = COLS - SidebarWidth - WrapMargin - ql - 1;
- else
- width = COLS - WrapMargin - ql - 1;
+ width = getmaxx(main_w) - WrapMargin - ql - 1;
if (!(s->flags & M_REPLYING) && option (OPTSTUFFQUOTED))
--width;
if (width < 0)
if (!(s->flags & M_REPLYING) && option (OPTSTUFFQUOTED))
--width;
if (width < 0)
- width =
COLS
;
+ width =
getmaxx(main_w)
;
}
if (m_strlen(line) == 0) {
}
if (m_strlen(line) == 0) {
@@
-187,7
+184,7
@@
int rfc3676_handler (BODY * a, STATE * s) {
}
p_realloc(&curline, curline_len + buf_len - buf_off);
}
p_realloc(&curline, curline_len + buf_len - buf_off);
-
strcpy (curline + curline_len -
1, buf + buf_off);
+
m_strcpy(curline + curline_len - 1, buf_len - buf_off +
1, buf + buf_off);
curline_len += buf_len - buf_off;
/* if this was a fixed line the paragraph is finished */
curline_len += buf_len - buf_off;
/* if this was a fixed line the paragraph is finished */
@@
-225,7
+222,7
@@
void rfc3676_space_stuff (HEADER* hdr) {
if ((in = safe_fopen (hdr->content->filename, "r")) == NULL)
return;
if ((in = safe_fopen (hdr->content->filename, "r")) == NULL)
return;
- out = m_tempfile(tmpf, sizeof(tmpf), NONULL(
Te
mpdir), NULL);
+ out = m_tempfile(tmpf, sizeof(tmpf), NONULL(
mod_core.t
mpdir), NULL);
if (!out) {
m_fclose(&in);
return;
if (!out) {
m_fclose(&in);
return;