mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.0345: islocked('d.changedtick') does not work
Problem: islocked('d.changedtick') does not work. Solution: Make it work.
This commit is contained in:
@@ -1811,6 +1811,7 @@ ex_let_one(
|
||||
*
|
||||
* flags:
|
||||
* GLV_QUIET: do not give error messages
|
||||
* GLV_READ_ONLY: will not change the variable
|
||||
* GLV_NO_AUTOLOAD: do not use script autoloading
|
||||
*
|
||||
* Returns a pointer to just after the name, including indexes.
|
||||
@@ -2078,7 +2079,8 @@ get_lval(
|
||||
break;
|
||||
}
|
||||
/* existing variable, need to check if it can be changed */
|
||||
else if (var_check_ro(lp->ll_di->di_flags, name, FALSE))
|
||||
else if ((flags & GLV_READ_ONLY) == 0
|
||||
&& var_check_ro(lp->ll_di->di_flags, name, FALSE))
|
||||
{
|
||||
clear_tv(&var1);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user