mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2742: Vim9: when compiling a function fails it is cleared
Problem: Vim9: when compiling a function fails it is cleared. Solution: Keep the function lines, prevent execution with a different status. (closes #8093)
This commit is contained in:
@@ -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;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user