diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-23 07:04:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 07:04:53 +0800 |
commit | a599183a274e5102b1244c9aaa7ac6c76d5ba5df (patch) | |
tree | 5b19c9165d50a0197a11ce7cf6690bff57673e68 /src/nvim/eval | |
parent | 5cbd6d9b9f232a6ff22ae3a9af80075404226e4b (diff) | |
download | rneovim-a599183a274e5102b1244c9aaa7ac6c76d5ba5df.tar.gz rneovim-a599183a274e5102b1244c9aaa7ac6c76d5ba5df.tar.bz2 rneovim-a599183a274e5102b1244c9aaa7ac6c76d5ba5df.zip |
vim-patch:8.2.0703: Vim9: closure cannot store value in outer context (#28925)
Problem: Vim9: closure cannot store value in outer context.
Solution: Make storing value in outer context work. Make :disassemble
accept a function reference.
https://github.com/vim/vim/commit/b68b346e6db6d3f848e0a89905fcd7777b73c5d8
Funcstack is Vim9script-only.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval')
-rw-r--r-- | src/nvim/eval/typval_defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/typval_defs.h b/src/nvim/eval/typval_defs.h index 0d6ee28adc..e88e6a222a 100644 --- a/src/nvim/eval/typval_defs.h +++ b/src/nvim/eval/typval_defs.h @@ -364,6 +364,7 @@ struct ufunc { struct partial_S { int pt_refcount; ///< Reference count. + int pt_copyID; char *pt_name; ///< Function name; when NULL use pt_func->name. ufunc_T *pt_func; ///< Function pointer; when NULL lookup function with pt_name. bool pt_auto; ///< When true the partial was created by using dict.member |