]> granicus.if.org Git - vim/commitdiff
patch 8.2.3264: Vim9: assign test fails v8.2.3264
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Aug 2021 10:01:49 +0000 (12:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Aug 2021 10:01:49 +0000 (12:01 +0200)
Problem:    Vim9: assign test fails.
Solution:   Add missing change.

src/eval.c
src/version.c

index 769816d2cc20940e03c238e5ac5f5d3b2af6eb5f..3688176ab616848660d80ae2dd5ceed31c643c31 100644 (file)
@@ -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)
        {
index 76c3e97e5f75a4ee56e448fe41c0b76296e35928..1a05c522ffe51fee5cdd982664358e3275c2dc60 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3264,
 /**/
     3263,
 /**/