aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
authorIto Hiroyuki <ZXB01226@nifty.com>2010-07-19 23:33:59 +0000
committerIto Hiroyuki <ZXB01226@nifty.com>2010-07-19 23:33:59 +0000
commit715e1bc1759a70d97106640402899f41f6f1111c (patch)
treefda878959486bdbec1e49dc2fbec1acc978957d9 /rc.c
parent* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org (diff)
downloadw3m-715e1bc1759a70d97106640402899f41f6f1111c.tar.gz
w3m-715e1bc1759a70d97106640402899f41f6f1111c.zip
* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329862#20 * table.c (feed_table_tag): check displayLinkNumber. * proto.h: add getLinkNumberStr(). * main.c (do_dump): check displayLinkNumber. * fm.h: add global variable displayLinkNumber. * file.c (getLinkNumberStr): added. (process_input, process_select, HTMLtagproc1): check displayLinkNumber.
Diffstat (limited to 'rc.c')
-rw-r--r--rc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rc.c b/rc.c
index 21a34bc..0f54c7b 100644
--- a/rc.c
+++ b/rc.c
@@ -1,4 +1,4 @@
-/* $Id: rc.c,v 1.111 2010/07/19 12:53:39 htrb Exp $ */
+/* $Id: rc.c,v 1.112 2010/07/19 23:34:01 htrb Exp $ */
/*
* Initialization file etc.
*/
@@ -72,6 +72,7 @@ static int OptionEncode = FALSE;
#define CMT_OPEN_TAB_BLANK N_("Open link on new tab if target is _blank or _new")
#define CMT_OPEN_TAB_DL_LIST N_("Open download list panel on new tab")
#define CMT_DISPLINK N_("Display link URL automatically")
+#define CMT_DISPLINKNUMBER N_("Display link numbers")
#define CMT_DECODE_URL N_("Display decoded URL")
#define CMT_DISPLINEINFO N_("Display current line number")
#define CMT_DISP_IMAGE N_("Display inline images")
@@ -357,6 +358,8 @@ struct param_ptr params1[] = {
CMT_OPEN_TAB_DL_LIST, NULL},
{"display_link", P_INT, PI_ONOFF, (void *)&displayLink, CMT_DISPLINK,
NULL},
+ {"display_link_number", P_INT, PI_ONOFF, (void *)&displayLinkNumber,
+ CMT_DISPLINKNUMBER, NULL},
{"decode_url", P_INT, PI_ONOFF, (void *)&DecodeURL, CMT_DECODE_URL, NULL},
{"display_lineinfo", P_INT, PI_ONOFF, (void *)&displayLineInfo,
CMT_DISPLINEINFO, NULL},