aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--menu.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ff2d80d..583503d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-11 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 02817]
+ * menu.c (menuBackwardSearch): new regexMatch()
+
2002-01-11 aito@fw.ipsj.or.jp
* [w3m-dev 02815]
@@ -1832,4 +1837,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.204 2002/01/10 15:39:21 ukai Exp $
+$Id: ChangeLog,v 1.205 2002/01/10 15:43:11 ukai Exp $
diff --git a/menu.c b/menu.c
index 39d2b70..992ec50 100644
--- a/menu.c
+++ b/menu.c
@@ -1,4 +1,4 @@
-/* $Id: menu.c,v 1.10 2002/01/10 15:39:21 ukai Exp $ */
+/* $Id: menu.c,v 1.11 2002/01/10 15:43:11 ukai Exp $ */
/*
* w3m menu.c
*/
@@ -979,7 +979,7 @@ menuBackwardSearch(Menu *menu, char *str, int from)
from = menu->nitem - 1;
for (i = from; i >= 0; i--)
if (menu->item[i].type != MENU_NOP &&
- regexMatch(menu->item[i].label, 0, 1) == 1)
+ regexMatch(menu->item[i].label, -1, 1) == 1)
return i;
return -1;
}