Patch 8.2.2292
Problem:    Vim: expr test fails.
Solution:   Add missing part of "null" support.
Files:      src/eval.c


*** ../vim-8.2.2291/src/eval.c  2021-01-03 20:55:22.803151955 +0100
--- src/eval.c  2021-01-03 21:51:29.911560387 +0100
***************
*** 3413,3424 ****
                    ret = OK;
                }
                else if (len == 5 && in_vim9script()
!                                               && STRNCMP(s, "false", 4) == 0)
                {
                    rettv->v_type = VAR_BOOL;
                    rettv->vval.v_number = VVAL_FALSE;
                    ret = OK;
                }
                else
                    ret = eval_variable(s, len, rettv, NULL, TRUE, FALSE);
            }
--- 3413,3431 ----
                    ret = OK;
                }
                else if (len == 5 && in_vim9script()
!                                               && STRNCMP(s, "false", 5) == 0)
                {
                    rettv->v_type = VAR_BOOL;
                    rettv->vval.v_number = VVAL_FALSE;
                    ret = OK;
                }
+               else if (len == 4 && in_vim9script()
+                                               && STRNCMP(s, "null", 4) == 0)
+               {
+                   rettv->v_type = VAR_SPECIAL;
+                   rettv->vval.v_number = VVAL_NULL;
+                   ret = OK;
+               }
                else
                    ret = eval_variable(s, len, rettv, NULL, TRUE, FALSE);
            }
*** ../vim-8.2.2291/src/version.c       2021-01-03 21:53:28.279020545 +0100
--- src/version.c       2021-01-03 22:05:05.295926000 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2292,
  /**/

-- 
>From "know your smileys":
 %-)    After staring at screen for 15 hours

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202101032105.103L5kZC2244964%40masaka.moolenaar.net.

Raspunde prin e-mail lui