commit | 4829c1c9e9095a3303caec9af7d02f6547f6df0e | [log] [tgz] |
---|---|---|
author | Yegappan Lakshmanan <yegappan@yahoo.com> | Mon Apr 04 15:16:54 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Apr 04 15:16:54 2022 +0100 |
tree | 2b3819cd2ea17b652ba29f3a8a6ea9945ec6c4bb | |
parent | 7a411a306f90339d8686e42ac16e1ae4fc7533c5 [diff] [blame] |
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)
diff --git a/src/search.c b/src/search.c index 98241a4..a66075f 100644 --- a/src/search.c +++ b/src/search.c
@@ -4878,7 +4878,7 @@ return; } } - if (dict_find(d, (char_u *)"matchseq", -1) != NULL) + if (dict_has_key(d, "matchseq")) matchseq = TRUE; }