comparison src/userfunc.c @ 19443:6b1a59e71f85 v8.2.0279

patch 8.2.0279: Vim9: no test for deleted :def function Commit: https://github.com/vim/vim/commit/63ce4849efa54d3980446ad337d0e1248ec86182 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 19 15:46:48 2020 +0100 patch 8.2.0279: Vim9: no test for deleted :def function Problem: Vim9: no test for deleted :def function. Solution: Add a test. Clear uf_cleared flag when redefining a function.
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Feb 2020 16:00:04 +0100
parents 208644ebdff8
children aae19dd172c0
comparison
equal deleted inserted replaced
19442:0eebb086cb2c 19443:6b1a59e71f85
3051 fp->uf_varargs = varargs; 3051 fp->uf_varargs = varargs;
3052 if (sandbox) 3052 if (sandbox)
3053 flags |= FC_SANDBOX; 3053 flags |= FC_SANDBOX;
3054 fp->uf_flags = flags; 3054 fp->uf_flags = flags;
3055 fp->uf_calls = 0; 3055 fp->uf_calls = 0;
3056 fp->uf_cleared = FALSE;
3056 fp->uf_script_ctx = current_sctx; 3057 fp->uf_script_ctx = current_sctx;
3057 fp->uf_script_ctx.sc_lnum += sourcing_lnum_top; 3058 fp->uf_script_ctx.sc_lnum += sourcing_lnum_top;
3058 if (is_export) 3059 if (is_export)
3059 { 3060 {
3060 fp->uf_flags |= FC_EXPORT; 3061 fp->uf_flags |= FC_EXPORT;