From 74a537f811b89b1b31ba37bf476dd1aaf0de8ed3 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 10 Jan 2002 15:43:11 +0000 Subject: [w3m-dev 02817] From: Hironori Sakamoto --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'menu.c') 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; } -- cgit v1.2.3