aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2006-04-07 13:21:11 +0000
committerDai Sato <satodai@w3m.jp>2006-04-07 13:21:11 +0000
commit22d66ca5850bf0190aa48d7f4442484f01fc7d02 (patch)
tree5b96b7e5bd65f08ad23867bc0738a0fef56f35df /menu.c
parentapply multiple patches on w3m-dev(-en) ML since Jun 2005 to Jan 2006. (diff)
downloadw3m-22d66ca5850bf0190aa48d7f4442484f01fc7d02.tar.gz
w3m-22d66ca5850bf0190aa48d7f4442484f01fc7d02.zip
rewind to 10 Feb 2006.
Diffstat (limited to '')
-rw-r--r--menu.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/menu.c b/menu.c
index 50c49f1..d8035e7 100644
--- a/menu.c
+++ b/menu.c
@@ -1,4 +1,4 @@
-/* $Id: menu.c,v 1.44 2006/04/05 14:18:54 inu Exp $ */
+/* $Id: menu.c,v 1.45 2006/04/07 13:21:12 inu Exp $ */
/*
* w3m menu.c
*/
@@ -590,6 +590,7 @@ action_menu(Menu *menu)
*item.variable = item.value;
if (item.type & MENU_FUNC) {
CurrentKey = -1;
+ CurrentKeyData = NULL;
CurrentCmdData = item.data;
(*item.func) ();
CurrentCmdData = NULL;
@@ -1737,23 +1738,6 @@ initMenu(void)
}
}
-DEFUN(interpretAsMenu, INTERPRET_AS_MENU, "Interpret current document as menu-definition")
-{
- FILE *mf;
- MenuList *list;
-
- if ((mf = fopen(Currentbuf->sourcefile, "r")) != NULL) {
- interpret_menu(mf);
- fclose(mf);
-
- for (list = w3mMenuList; list->id != NULL; list++) {
- if (list->item == NULL)
- continue;
- new_menu(list->menu, list->item);
- }
- }
-}
-
int
setMenuItem(MenuItem *item, char *type, char *line)
{