Fix interned string hashing, we need to hash content
This commit is contained in:
parent
54fd0aab22
commit
5078b9077d
|
@ -128,8 +128,7 @@ namespace std
|
|||
{
|
||||
size_t operator()(const Kakoune::InternedString& str) const
|
||||
{
|
||||
return hash<const char*>{}(str.data()) ^
|
||||
hash<int>{}((int)str.length());
|
||||
return Kakoune::hash_data(str.data(), (int)str.length());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user