aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-30 16:29:11 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-30 16:29:11 +0000
commit79af75d00c435ab53e7d3c4b03bb54454b8b6dc9 (patch)
tree650f0d83ef04c12afd43a7970811b47988ebb3f1 /file.c
parent[w3m-dev 03713] search with "$" (diff)
downloadw3m-79af75d00c435ab53e7d3c4b03bb54454b8b6dc9.tar.gz
w3m-79af75d00c435ab53e7d3c4b03bb54454b8b6dc9.zip
[w3m-dev 03714] -cols 1 -dump -o fold_line=1
* file.c (addnewline): check i == 0, i == l->len * fm.h (_INIT_BUFFER_WIDTH): added (INIT_BUFFER_WIDTH): use _INIT_BUFFER_WIDTH From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/file.c b/file.c
index 68537a9..317aa45 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.213 2003/01/29 17:38:14 ukai Exp $ */
+/* $Id: file.c,v 1.214 2003/01/30 16:29:13 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -6145,6 +6145,15 @@ addnewline(Buffer *buf, char *line, Lineprop *prop,
i--;
#endif
}
+ if (i == 0) {
+ i++;
+#ifdef JP_CHARSET
+ if (CharType(p[i]) == PC_KANJI2)
+ i++;
+#endif
+ }
+ if (i == l->len)
+ return;
l->len = i;
l->width = COLPOS(l, l->len);
bpos += l->len;