mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
Improve map module: Fix implementation of map_has
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user