1
0
forked from aniani/vim

patch 8.2.4683: verbose check with dict_find() to see if a key is present

Problem:    Verbose check with dict_find() to see if a key is present.
Solution:   Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
This commit is contained in:
Yegappan Lakshmanan
2022-04-04 15:16:54 +01:00
committed by Bram Moolenaar
parent 7a411a306f
commit 4829c1c9e9
18 changed files with 95 additions and 84 deletions

View File

@@ -4313,7 +4313,7 @@ add_tag_field(
int retval;
// check that the field name doesn't exist yet
if (dict_find(dict, (char_u *)field_name, -1) != NULL)
if (dict_has_key(dict, field_name))
{
if (p_verbose > 0)
{