0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4202: Vim9: cannot export function that exists globally

Problem:    Vim9: cannot export function that exists globally.
Solution:   When checking if a function already exists only check for
            script-local functions. (closes #9615)
This commit is contained in:
Bram Moolenaar
2022-01-24 13:54:45 +00:00
parent 8e4af851fd
commit acc4b5648b
7 changed files with 58 additions and 12 deletions

View File

@@ -2798,4 +2798,8 @@ long elapsed(DWORD start_tick);
#define VSE_SHELL 1 // escape for a shell command
#define VSE_BUFFER 2 // escape for a ":buffer" command
// Flags used by find_func_even_dead()
#define FFED_IS_GLOBAL 1 // "g:" was used
#define FFED_NO_GLOBAL 2 // only check for script-local functions
#endif // VIM__H