commit c32eb5ad0784298cb7afebc89606ac6a8d0b87c2
parent 676b5bc73f7a2d0e4343059c4aac46208e92ad0f
Author: ukai <ukai>
Date: Thu, 10 Jan 2002 15:43:11 +0000
[w3m-dev 02817]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git 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]
diff --git a/menu.c b/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;
}