Fix interned string hashing, we need to hash content

This commit is contained in:
Maxime Coste 2014-10-28 19:16:35 +00:00
parent 54fd0aab22
commit 5078b9077d

View File

@ -128,8 +128,7 @@ namespace std
{ {
size_t operator()(const Kakoune::InternedString& str) const size_t operator()(const Kakoune::InternedString& str) const
{ {
return hash<const char*>{}(str.data()) ^ return Kakoune::hash_data(str.data(), (int)str.length());
hash<int>{}((int)str.length());
} }
}; };
} }