aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-05 16:58:09 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-05 16:58:09 +0000
commit666431c56023f6b80782581af26b10704f71ff5b (patch)
tree25f6a70248ce49eec5cd384f86b7b7348d521e36 /main.c
parentdoc-jp/MANUAL.html: add note about file:/cgi-bin (diff)
downloadw3m-666431c56023f6b80782581af26b10704f71ff5b.tar.gz
w3m-666431c56023f6b80782581af26b10704f71ff5b.zip
[w3m-dev 03084] A temporary file remains when pipe + 'v'
* proto.h (saveBufferDelNum): deleted * file.c (saveBufferDelNum): deleted * file.c (saveBuffer): saveBufferDelNum() renamed * main.c (vwSrc): tmpfname() recorded as fileToDelete use saveBuffer() instead of saveBufferDelNum() From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 1386362..d215d61 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.85 2002/02/28 16:15:41 ukai Exp $ */
+/* $Id: main.c,v 1.86 2002/03/05 16:58:09 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -4150,10 +4150,11 @@ vwSrc(void)
!strcasecmp(Currentbuf->type, "text/plain")) {
FILE *f;
Str tmpf = tmpfname(TMPF_SRC, NULL);
+ pushText(fileToDelete, tmpf->ptr);
f = fopen(tmpf->ptr, "w");
if (f == NULL)
return;
- saveBufferDelNum(Currentbuf, f, showLineNum);
+ saveBuffer(Currentbuf, f);
fclose(f);
fn = tmpf->ptr;
}