aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-19 10:51:56 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-19 10:51:56 -0300
commiteb7513bbd2bd9189502159c4146bb6999b8da32b (patch)
tree2bfe0a2b2f0cde4fdffbeb7a7cce4835da247961
parentb87b1a3325cc134bacd7dbec4d873053aa1c4d93 (diff)
downloadrneovim-eb7513bbd2bd9189502159c4146bb6999b8da32b.tar.gz
rneovim-eb7513bbd2bd9189502159c4146bb6999b8da32b.tar.bz2
rneovim-eb7513bbd2bd9189502159c4146bb6999b8da32b.zip
Improve map module: Fix implementation of map_has
-rw-r--r--src/nvim/map.c2
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)