mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.1698: cannot lock a variable in legacy Vim script like in Vim9
Problem: Cannot lock a variable in legacy Vim script like in Vim9. Solution: Make ":lockvar 0" work.
This commit is contained in:
@@ -512,8 +512,8 @@ tv_check_lock(typval_T *tv, char_u *name, int use_gettext)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return var_check_lock(tv->v_lock, name, use_gettext)
|
||||
|| (lock != 0 && var_check_lock(lock, name, use_gettext));
|
||||
return value_check_lock(tv->v_lock, name, use_gettext)
|
||||
|| (lock != 0 && value_check_lock(lock, name, use_gettext));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user