diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2020-12-02 13:44:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 08:44:13 -0500 |
commit | 8fb786e415d1c3538452885455b2268d13f640a6 (patch) | |
tree | 3b9171dda85efadb38324f6a88c4ffcce69415f5 /src/nvim/eval.h | |
parent | d80f262f894bfc1d8a8ba79fdc5d1c14f738a140 (diff) | |
download | rneovim-8fb786e415d1c3538452885455b2268d13f640a6.tar.gz rneovim-8fb786e415d1c3538452885455b2268d13f640a6.tar.bz2 rneovim-8fb786e415d1c3538452885455b2268d13f640a6.zip |
vim-patch:8.2.0602: :unlet $VAR does not work properly (#13238)
Problem: :unlet $VAR does not work properly.
Solution: Make ":lockvar $VAR" fail. Check the "skip" flag.
https://github.com/vim/vim/commit/7e0868efcf094f2cc59fa4e18af3a8dc7aedd64f
Include patch 8.2.0601 changes so that ex_unletlock() can execute a callback if there are no errors.
Diffstat (limited to 'src/nvim/eval.h')
-rw-r--r-- | src/nvim/eval.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval.h b/src/nvim/eval.h index 0b4cbb3b4d..06b7f9e21d 100644 --- a/src/nvim/eval.h +++ b/src/nvim/eval.h @@ -233,6 +233,8 @@ typedef enum { kDictListItems, ///< List dictionary contents: [keys, values]. } DictListType; +typedef int (*ex_unletlock_callback)(lval_T *, char_u *, exarg_T *, int); + // Used for checking if local variables or arguments used in a lambda. extern bool *eval_lavars_used; |