diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-03 16:07:37 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-03 16:07:37 +0000 |
commit | 3546830a996bb8847a3cf2de0d1a818ab8a9f570 (patch) | |
tree | 2378e886dfe8cd3f912dfcac3085b60248fb0d1f | |
parent | NEWS: 2 stroke keybinding (diff) | |
download | w3m-3546830a996bb8847a3cf2de0d1a818ab8a9f570.tar.gz w3m-3546830a996bb8847a3cf2de0d1a818ab8a9f570.zip |
[w3m-dev 03516] Re: 2 stroke keybinding
* func.c (keymap_initialized): initialized to FALSE
(setKeymap): push KeyData
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | func.c | 6 |
2 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2002-12-04 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03516] Re: 2 stroke keybinding + * func.c (keymap_initialized): initialized to FALSE + (setKeymap): push KeyData + 2002-12-04 Fumitoshi UKAI <ukai@debian.or.jp> * NEWS: 2 stroke keybinding @@ -5388,4 +5394,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.581 2002/12/03 16:03:46 ukai Exp $ +$Id: ChangeLog,v 1.582 2002/12/03 16:07:37 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: func.c,v 1.18 2002/12/03 16:01:31 ukai Exp $ */ +/* $Id: func.c,v 1.19 2002/12/03 16:07:40 ukai Exp $ */ /* * w3m func.c */ @@ -14,7 +14,7 @@ #define KEYDATA_HASH_SIZE 16 static Hash_iv *keyData = NULL; -static char keymap_initialized; +static char keymap_initialized = FALSE; static struct stat current_keymap_file; void @@ -104,6 +104,8 @@ setKeymap(char *p, int lineno, int verbose) keyData = newHash_iv(KEYDATA_HASH_SIZE); putHash_iv(keyData, c, (void *)s); } + else if (getKeyData(c)) + putHash_iv(keyData, c, NULL); } void |