From eb7513bbd2bd9189502159c4146bb6999b8da32b Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Mon, 19 May 2014 10:51:56 -0300 Subject: Improve map module: Fix implementation of map_has --- src/nvim/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/map.c b/src/nvim/map.c index 40868e5b92..332de6d3d3 100644 --- a/src/nvim/map.c +++ b/src/nvim/map.c @@ -45,7 +45,7 @@ void *map_get(Map *map, const char *key) bool map_has(Map *map, const char *key) { - return map_get(map, key) != NULL; + return kh_get(Map, map->table, key) != kh_end(map->table); } void *map_put(Map *map, const char *key, void *value) -- cgit