diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-01 21:30:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-01 21:30:12 +0200 |
commit | e041dde7bb9157644fa5135a252c84924b9ea433 (patch) | |
tree | 5fa0a808d67cb5cfaf3e821999bb443c8fc64074 /src/textprop.c | |
parent | e4db17fb6e2d029aa2dddfca703ace9bcf0d85fd (diff) | |
download | vim-git-e041dde7bb9157644fa5135a252c84924b9ea433.tar.gz |
patch 8.2.3272: cannot use id zero with prop_find()v8.2.3272
Problem: Cannot use id zero with prop_find(). (Naohiro Ono)
Solution: Also accept id zero.
Diffstat (limited to 'src/textprop.c')
-rw-r--r-- | src/textprop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textprop.c b/src/textprop.c index e5cc366b6..6c9d5c8c4 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -689,7 +689,7 @@ f_prop_find(typval_T *argvars, typval_T *rettv) 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)) { |