commit | e041dde7bb9157644fa5135a252c84924b9ea433 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Aug 01 21:30:12 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Aug 01 21:30:12 2021 +0200 |
tree | 5fa0a808d67cb5cfaf3e821999bb443c8fc64074 | |
parent | e4db17fb6e2d029aa2dddfca703ace9bcf0d85fd [diff] [blame] |
patch 8.2.3272: cannot use id zero with prop_find() Problem: Cannot use id zero with prop_find(). (Naohiro Ono) Solution: Also accept id zero.
diff --git a/src/textprop.c b/src/textprop.c index e5cc366..6c9d5c8 100644 --- a/src/textprop.c +++ b/src/textprop.c
@@ -689,7 +689,7 @@ if (dict_find(dict, (char_u *)"id", -1) != NULL) { id = dict_get_number(dict, (char_u *)"id"); - id_found = id != 0; + id_found = TRUE; } if (dict_find(dict, (char_u *)"type", -1)) {