aboutsummaryrefslogtreecommitdiffstats
path: root/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/buffer.c b/buffer.c
index 48cc361..effd57b 100644
--- a/buffer.c
+++ b/buffer.c
@@ -1,4 +1,4 @@
-/* $Id: buffer.c,v 1.16 2002/12/02 17:27:36 ukai Exp $ */
+/* $Id: buffer.c,v 1.17 2003/01/10 16:08:20 ukai Exp $ */
#include "fm.h"
#ifdef USE_MOUSE
@@ -530,9 +530,9 @@ reshapeBuffer(Buffer *buf)
UseContentCharset = FALSE;
UseAutoDetect = FALSE;
#endif
- if (buf->search_header && buf->currentURL.scheme == SCM_LOCAL) {
- if (buf->header_source && (buf->mailcap_source ||
- !strcmp(buf->currentURL.file, "-"))) {
+ if (buf->header_source) {
+ if (buf->currentURL.scheme != SCM_LOCAL ||
+ buf->mailcap_source || !strcmp(buf->currentURL.file, "-")) {
URLFile h;
init_stream(&h, SCM_LOCAL, NULL);
examineFile(buf->header_source, &h);
@@ -540,8 +540,8 @@ reshapeBuffer(Buffer *buf)
readHeader(&h, buf, TRUE, NULL);
UFclose(&h);
}
- }
- else
+ }
+ else if (buf->search_header) /* -m option */
readHeader(&f, buf, TRUE, NULL);
}