mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
eval: Remove incorrect workaround
Was replaced by the previous patch. Also fixes legacy test 055.
This commit is contained in:
parent
d8a7e5fdbb
commit
f387de4ec0
@ -3098,11 +3098,7 @@ static int do_lock_var(lval_T *lp, char_u *name_end, int deep, int lock)
|
||||
// Dictionaries. E.g. b: dictionary may be locked/unlocked.
|
||||
emsgf(_("E940: Cannot lock or unlock variable %s"), lp->ll_name);
|
||||
} else {
|
||||
if ((di->di_flags & (DI_FLAGS_LOCK|DI_FLAGS_FIX))
|
||||
== (DI_FLAGS_LOCK|DI_FLAGS_FIX)) {
|
||||
// Locked and fixed: do not alter lock, but issue an error.
|
||||
emsgf(_(e_readonlyvar), (int)name_len, lp->ll_name);
|
||||
} else if (lock) {
|
||||
if (lock) {
|
||||
di->di_flags |= DI_FLAGS_LOCK;
|
||||
} else {
|
||||
di->di_flags &= ~DI_FLAGS_LOCK;
|
||||
|
Loading…
Reference in New Issue
Block a user