aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 16:46:32 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 16:46:32 +0000
commit8ba4eebc4a8e6b95e6cec4bc0e0884303e5c3fa3 (patch)
treeec658a012b39abe4c11a970b68c0bbcd5416ad1d /file.c
parent* XMakefile (clean): rm tagtable.c (diff)
downloadw3m-8ba4eebc4a8e6b95e6cec4bc0e0884303e5c3fa3.tar.gz
w3m-8ba4eebc4a8e6b95e6cec4bc0e0884303e5c3fa3.zip
[w3m-dev 02454] line number
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/file.c b/file.c
index a015176..b104c73 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.8 2001/11/20 08:20:56 ukai Exp $ */
+/* $Id: file.c,v 1.9 2001/11/20 16:46:32 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -3722,12 +3722,6 @@ HTMLlineproc2body(Buffer * buf, Str (*feed) (), int llimit)
if (++nlines == llimit)
break;
pos = 0;
- if (showLineNum) {
- tmp = Sprintf("%4d:", nlines);
- for (p = tmp->ptr; *p; p++) {
- PPUSH(PC_ASCII, *p);
- }
- }
#ifdef ENABLE_REMOVE_TRAILINGSPACES
Strremovetrailingspaces(line);
#endif
@@ -5154,11 +5148,6 @@ loadBuffer(URLFile * uf, Buffer * newBuf)
pre_lbuf = lineBuf2->ptr[0];
}
++nlines;
- if (showLineNum) {
- Str tmp = Sprintf("%4d:", nlines);
- Strcat(tmp, lineBuf2);
- lineBuf2 = tmp;
- }
#ifdef USE_NNTP
if (uf->scheme == SCM_NEWS) {
if (Str_news_endline(lineBuf2)) {
@@ -5254,8 +5243,6 @@ saveBufferDelNum(Buffer * buf, FILE * f, int del)
else
#endif
tmp = Strnew_charp_n(l->lineBuf, l->len);
- if (del && l->real_linenumber && (p = strchr(tmp->ptr, ':')) != NULL)
- Strdelete(tmp, 0, p - tmp->ptr + 1);
#ifdef JP_CHARSET
tmp = conv_str(tmp, InnerCode, DisplayCode);
#endif
@@ -5434,11 +5421,6 @@ getNextPage(Buffer * buf, int plen)
if (pl != NULL) {
nlines = pl->real_linenumber;
pre_lbuf = *(pl->lineBuf);
- if (showLineNum) {
- char *p;
- if ((p = strchr(pl->lineBuf, ':')) != NULL)
- pre_lbuf = *(p + 1);
- }
if (pre_lbuf == '\0')
pre_lbuf = '\n';
}
@@ -5475,11 +5457,6 @@ getNextPage(Buffer * buf, int plen)
pre_lbuf = lineBuf2->ptr[0];
}
++nlines;
- if (showLineNum) {
- Str tmp = Sprintf("%4d:", nlines);
- Strcat(tmp, lineBuf2);
- lineBuf2 = tmp;
- }
Strchop(lineBuf2);
lineBuf2 = checkType(lineBuf2, propBuffer,
#ifdef ANSI_COLOR