diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-19 10:51:56 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-19 10:51:56 -0300 |
commit | eb7513bbd2bd9189502159c4146bb6999b8da32b (patch) | |
tree | 2bfe0a2b2f0cde4fdffbeb7a7cce4835da247961 | |
parent | b87b1a3325cc134bacd7dbec4d873053aa1c4d93 (diff) | |
download | rneovim-eb7513bbd2bd9189502159c4146bb6999b8da32b.tar.gz rneovim-eb7513bbd2bd9189502159c4146bb6999b8da32b.tar.bz2 rneovim-eb7513bbd2bd9189502159c4146bb6999b8da32b.zip |
Improve map module: Fix implementation of map_has
-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) |