aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-10 15:39:21 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-10 15:39:21 +0000
commite7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733 (patch)
tree295a233ae838adbbee9e942504e9573cb179a8a4 /menu.c
parent[w3m-dev 02811] new regexp implementation (diff)
downloadw3m-e7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733.tar.gz
w3m-e7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733.zip
[w3m-dev 02815]
From: aito@fw.ipsj.or.jp
Diffstat (limited to '')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index fae5ab6..39d2b70 100644
--- a/menu.c
+++ b/menu.c
@@ -1,4 +1,4 @@
-/* $Id: menu.c,v 1.9 2001/12/10 17:02:44 ukai Exp $ */
+/* $Id: menu.c,v 1.10 2002/01/10 15:39:21 ukai Exp $ */
/*
* w3m menu.c
*/
@@ -930,7 +930,7 @@ menuForwardSearch(Menu *menu, char *str, int from)
from = 0;
for (i = from; i < menu->nitem; 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;
}