mirror of
https://github.com/neovim/neovim.git
synced 2024-12-28 14:31:13 -07:00
Improve map module: Fix implementation of map_has
This commit is contained in:
parent
b87b1a3325
commit
eb7513bbd2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user