mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:8.2.3264: Vim9: assign test fails
Problem: Vim9: assign test fails.
Solution: Add missing change.
f24f51d030
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -31,9 +31,10 @@ char *e_list_index_out_of_range_nr
|
|||||||
int eexe_mod_op(typval_T *const tv1, const typval_T *const tv2, const char *const op)
|
int eexe_mod_op(typval_T *const tv1, const typval_T *const tv2, const char *const op)
|
||||||
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NO_SANITIZE_UNDEFINED
|
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NO_SANITIZE_UNDEFINED
|
||||||
{
|
{
|
||||||
// Can't do anything with a Funcref, a Dict or special value 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
|
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) {
|
switch (tv1->v_type) {
|
||||||
case VAR_DICT:
|
case VAR_DICT:
|
||||||
case VAR_FUNC:
|
case VAR_FUNC:
|
||||||
|
Reference in New Issue
Block a user