mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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:
committed by
Bram Moolenaar
parent
7a411a306f
commit
4829c1c9e9
@@ -4311,13 +4311,13 @@ handle_drop_command(listitem_T *item)
|
||||
if (p != NULL)
|
||||
get_bad_opt(p, &ea);
|
||||
|
||||
if (dict_find(dict, (char_u *)"bin", -1) != NULL)
|
||||
if (dict_has_key(dict, "bin"))
|
||||
ea.force_bin = FORCE_BIN;
|
||||
if (dict_find(dict, (char_u *)"binary", -1) != NULL)
|
||||
if (dict_has_key(dict, "binary"))
|
||||
ea.force_bin = FORCE_BIN;
|
||||
if (dict_find(dict, (char_u *)"nobin", -1) != NULL)
|
||||
if (dict_has_key(dict, "nobin"))
|
||||
ea.force_bin = FORCE_NOBIN;
|
||||
if (dict_find(dict, (char_u *)"nobinary", -1) != NULL)
|
||||
if (dict_has_key(dict, "nobinary"))
|
||||
ea.force_bin = FORCE_NOBIN;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user