commit 7edc085cf5c5f92a54a6cf3d514a7827f82513db
parent 862dffacb8cd3caf4e537c18f3c421d464ecb2ea
Author: ukai <ukai>
Date: Tue, 3 Dec 2002 16:07:37 +0000
[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>
Diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -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
diff --git a/func.c b/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