1
0
forked from aniani/vim

patch 7.4.1707

Problem:    Cannot use empty dictionary key, even though it can be useful.
Solution:   Allow using an empty dictionary key.
This commit is contained in:
Bram Moolenaar
2016-04-03 22:44:36 +02:00
parent e185c1efba
commit 0921ecff1c
4 changed files with 22 additions and 13 deletions

View File

@@ -468,8 +468,7 @@ hash_hash(char_u *key)
char_u *p;
if ((hash = *key) == 0)
return (hash_T)0; /* Empty keys are not allowed, but we don't
want to crash if we get one. */
return (hash_T)0;
p = key + 1;
/* A simplistic algorithm that appears to do very well.