summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-24 13:54:45 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-24 13:54:45 +0000
commitacc4b5648b49ec13c4f35ee0bf552eda71b0c372 (patch)
tree1d39323dfdfb6cec204d7a342dc6a70bf010fb91 /src/vim.h
parent8e4af851fd3eff4b22fca962e5be783742e8f1bb (diff)
patch 8.2.4202: Vim9: cannot export function that exists globallyv8.2.4202
Problem: Vim9: cannot export function that exists globally. Solution: When checking if a function already exists only check for script-local functions. (closes #9615)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index f418e04c8f..9aac6d30d9 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -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