diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-10 13:33:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-10 13:33:48 +0200 |
commit | 701cc6ca9e940665a9424541f989bb38c853a498 (patch) | |
tree | fc921ae870560511c19e0caa9025fcbc568143de /src/structs.h | |
parent | 1088b69451c739c698cf4c2003c2b994458ad18b (diff) | |
download | vim-git-701cc6ca9e940665a9424541f989bb38c853a498.tar.gz |
patch 8.2.2742: Vim9: when compiling a function fails it is clearedv8.2.2742
Problem: Vim9: when compiling a function fails it is cleared.
Solution: Keep the function lines, prevent execution with a different
status. (closes #8093)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/structs.h b/src/structs.h index dd802152c..b4bafa5a9 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1583,10 +1583,11 @@ typedef struct funccall_S funccall_T; // values used for "uf_def_status" typedef enum { - UF_NOT_COMPILED, - UF_TO_BE_COMPILED, - UF_COMPILING, - UF_COMPILED + UF_NOT_COMPILED, // executed with interpreter + UF_TO_BE_COMPILED, // to be compiled before execution + UF_COMPILING, // in compile_def_function() + UF_COMPILED, // successfully compiled + UF_COMPILE_ERROR // compilation error, cannot execute } def_status_T; /* |