diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-01 12:01:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-01 12:01:49 +0200 |
commit | f24f51d03035379cf3e5b2dccf489a40bc4ca92a (patch) | |
tree | b82579f144080d552d534fda4595c1a81fb8df68 /src/eval.c | |
parent | f5d52c90e0f2f51622a911b646024b2ad1225ed4 (diff) |
patch 8.2.3264: Vim9: assign test failsv8.2.3264
Problem: Vim9: assign test fails.
Solution: Add missing change.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index 769816d2cc..3688176ab6 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1515,9 +1515,11 @@ tv_op(typval_T *tv1, typval_T *tv2, char_u *op) char_u *s; int failed = FALSE; - // Can't do anything with a Funcref, Dict, v:true on the right. + // Can't do anything with a Funcref or Dict on the right. + // v:true and friends only work with "..=". if (tv2->v_type != VAR_FUNC && tv2->v_type != VAR_DICT - && tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL) + && ((tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL) + || *op == '.')) { switch (tv1->v_type) { |