Mercurial > vim
changeset 25455:e7c02cbe701f v8.2.3264
patch 8.2.3264: Vim9: assign test fails
Commit: https://github.com/vim/vim/commit/f24f51d03035379cf3e5b2dccf489a40bc4ca92a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 1 12:01:49 2021 +0200
patch 8.2.3264: Vim9: assign test fails
Problem: Vim9: assign test fails.
Solution: Add missing change.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Aug 2021 12:15:03 +0200 |
parents | e547441b00e4 |
children | b6b6400dee89 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -1515,9 +1515,11 @@ tv_op(typval_T *tv1, typval_T *tv2, char 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) {