diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-30 16:29:11 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-30 16:29:11 +0000 |
commit | 79af75d00c435ab53e7d3c4b03bb54454b8b6dc9 (patch) | |
tree | 650f0d83ef04c12afd43a7970811b47988ebb3f1 /fm.h | |
parent | [w3m-dev 03713] search with "$" (diff) | |
download | w3m-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 '')
-rw-r--r-- | fm.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: fm.h,v 1.110 2003/01/29 17:10:37 ukai Exp $ */ +/* $Id: fm.h,v 1.111 2003/01/30 16:29:14 ukai Exp $ */ /* * w3m: WWW wo Miru utility * @@ -523,7 +523,8 @@ typedef struct _DownloadList { #define FONTSTAT_SIZE 4 -#define INIT_BUFFER_WIDTH (COLS - (showLineNum ? 6 : 1)) +#define _INIT_BUFFER_WIDTH (COLS - (showLineNum ? 6 : 1)) +#define INIT_BUFFER_WIDTH ((_INIT_BUFFER_WIDTH > 0) ? _INIT_BUFFER_WIDTH : 0) #define FOLD_BUFFER_WIDTH (FoldLine ? (INIT_BUFFER_WIDTH + 1) : -1) typedef struct { |