diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-21 19:59:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-21 19:59:08 +0100 |
commit | f4e2099e39ed4d71aed0f9a9579455aed5ec6cc2 (patch) | |
tree | 40a384257e29f443c46bbaa19fb88a8eb5441b05 /src/structs.h | |
parent | a3d10a508c404a32485adc86284725e0bdc5b602 (diff) | |
download | vim-git-f4e2099e39ed4d71aed0f9a9579455aed5ec6cc2.tar.gz |
patch 8.2.2182: Vim9: value of 'magic' is still relevantv8.2.2182
Problem: Vim9: value of 'magic' is still relevant.
Solution: Always behave like 'magic' is on in Vim9 script (closes #7509)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 809a2d156..64d903bd2 100644 --- a/src/structs.h +++ b/src/structs.h @@ -4309,3 +4309,9 @@ typedef struct // We have to guess how much a sequence of bytes may expand when converting // with iconv() to be able to allocate a buffer. #define ICONV_MULT 8 + +typedef enum { + MAGIC_NOT_SET, // p_magic not overruled + MAGIC_ON, // magic on inside regexp + MAGIC_OFF // magic off inside regexp +} magic_T; |