diff options
-rw-r--r-- | src/nvim/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |