commit 8ae9ffd442f27565af645066d9b3889d00b0fb70
parent a0acd16ad76a7b96b7f29b12fae44e52150b0d94
Author: ukai <ukai>
Date: Fri, 14 Dec 2001 17:35:08 +0000
[w3m-dev 02659] rc.c (show_srch_str)
From: Rin Okuyama <okuyama@cna.ne.jp>
Diffstat:
4 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,10 @@
+2001-12-15 Rin Okuyama <okuyama@cna.ne.jp>
+
+ * [w3m-dev 02659] rc.c (show_srch_str)
+ * fm.h (show_srch_str): added
+ * main.c (srch_nxtprv): check show_srch_str
+ * rc.c (CMT_SHOW_SRCH_STR): added
+
2001-12-15 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 02657]
diff --git a/fm.h b/fm.h
@@ -725,6 +725,7 @@ global int nextpage_topline init(FALSE);
global int displayLink init(FALSE);
global int retryAsHttp init(TRUE);
global int showLineNum init(FALSE);
+global int show_srch_str init(TRUE);
global char *Editor init(DEF_EDITOR);
global char *Mailer init(DEF_MAILER);
global char *ExtBrowser init(DEF_EXT_BROWSER);
diff --git a/main.c b/main.c
@@ -1322,7 +1322,7 @@ srch_nxtprv(volatile int reverse)
if (wrapped) {
disp_message("Search wrapped", FALSE);
}
- else {
+ else if (show_srch_str) {
disp_message(Sprintf("%s%s",
routine[reverse] ==
forwardSearch ? "Forward: " : "Backward: ",
diff --git a/rc.c b/rc.c
@@ -106,6 +106,7 @@ static char *config_file = NULL;
#define CMT_NEXTPAGE_TOPLINE "次のページに移動する時にカーソルがトップになるようにする"
#endif
#define CMT_SHOW_NUM "行番号を表示する"
+#define CMT_SHOW_SRCH_STR "検索文字列を表示する"
#define CMT_MIMETYPES "利用するmime.types"
#define CMT_MAILCAP "利用するmailcap"
#define CMT_EDITOR "利用するエディタ"
@@ -221,6 +222,7 @@ static char *config_file = NULL;
#define CMT_NEXTPAGE_TOPLINE "move cursor to top line when moving to next page"
#endif
#define CMT_SHOW_NUM "Show line number"
+#define CMT_SHOW_SRCH_STR "Show search strings"
#define CMT_MIMETYPES "mime.types files"
#define CMT_MAILCAP "mailcap files"
#define CMT_EDITOR "Editor"
@@ -393,6 +395,8 @@ struct param_ptr params1[] = {
{"view_unseenobject", P_INT, PI_ONOFF, (void *)&view_unseenobject,
CMT_VIEW_UNSEENOBJECTS, NULL},
{"show_lnum", P_INT, PI_ONOFF, (void *)&showLineNum, CMT_SHOW_NUM, NULL},
+ {"show_srch_str", P_INT, PI_ONOFF, (void *)&show_srch_str,
+ CMT_SHOW_SRCH_STR, NULL},
{NULL, 0, 0, NULL, NULL, NULL},
};