aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-19 16:06:52 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-19 16:06:52 +0000
commitf475e89f9f08db4fbb0d461b4ecaae6c1a11ca4c (patch)
tree3d9d729379650d9fe797bb0f019f1fd514feec33 /menu.c
parent[w3m-dev 03135] commit of [w3m-dev 03006] is incomplete. (diff)
downloadw3m-f475e89f9f08db4fbb0d461b4ecaae6c1a11ca4c.tar.gz
w3m-f475e89f9f08db4fbb0d461b4ecaae6c1a11ca4c.zip
[w3m-dev 03136] Add COMMAND to execute multiple commands
* fm.h (CurrentMenuData): deleted (CurrentCmdData): added * func.c (getKey): check next char of ^ (getWord): get word until ';' (getQWord): rewrite using Str * funcname.tab (COMMAND): added * main.c (MAIN): delete CurrentMenuData initialize CurrentCmdData (searchKeyData): use CurrentCmdData (execCmd): added (SigAlarm): delete CurrentMenuData, use CurrentCmdData * menu.c (action_menu): delete CurrentMenuData, use CurrentCmdData * proto.h (execCmd): added * doc/README.func (ALARM): capitalize (COMMAND): added * doc-jp/README.func (COMMAND): added From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index 12d54bd..c8ea107 100644
--- a/menu.c
+++ b/menu.c
@@ -1,4 +1,4 @@
-/* $Id: menu.c,v 1.14 2002/01/31 17:54:52 ukai Exp $ */
+/* $Id: menu.c,v 1.15 2002/03/19 16:06:52 ukai Exp $ */
/*
* w3m menu.c
*/
@@ -641,9 +641,9 @@ action_menu(Menu *menu)
if (item.type & MENU_FUNC) {
CurrentKey = -1;
CurrentKeyData = NULL;
- CurrentMenuData = item.data;
+ CurrentCmdData = item.data;
(*item.func) ();
- CurrentMenuData = NULL;
+ CurrentCmdData = NULL;
}
}
else if (mselect == MENU_CLOSE) {