diff options
Diffstat (limited to '')
-rw-r--r-- | buffer.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: buffer.c,v 1.10 2002/01/31 17:54:49 ukai Exp $ */ +/* $Id: buffer.c,v 1.11 2002/03/13 15:51:36 ukai Exp $ */ #include "fm.h" #ifdef USE_MOUSE @@ -497,6 +497,9 @@ reshapeBuffer(Buffer *buf) buf->need_reshape = FALSE; if (buf->sourcefile == NULL) return; + if (buf->currentURL.scheme == SCM_LOCAL && + !strcmp(buf->currentURL.file, "-")) + return; init_stream(&f, SCM_LOCAL, NULL); examineFile(buf->mailcap_source ? buf->mailcap_source : buf->sourcefile, &f); @@ -520,6 +523,8 @@ reshapeBuffer(Buffer *buf) UseContentCharset = FALSE; UseAutoDetect = FALSE; #endif + if (buf->search_header && buf->currentURL.scheme == SCM_LOCAL) + readHeader(&f, buf, TRUE, NULL); if (!strcasecmp(buf->type, "text/html")) loadHTMLBuffer(&f, buf); else |