summaryrefslogtreecommitdiff
path: root/src/arglist.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-21 19:59:08 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-21 19:59:08 +0100
commitf4e2099e39ed4d71aed0f9a9579455aed5ec6cc2 (patch)
tree40a384257e29f443c46bbaa19fb88a8eb5441b05 /src/arglist.c
parenta3d10a508c404a32485adc86284725e0bdc5b602 (diff)
downloadvim-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/arglist.c')
-rw-r--r--src/arglist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arglist.c b/src/arglist.c
index dd255a64a..4e971fd4b 100644
--- a/src/arglist.c
+++ b/src/arglist.c
@@ -409,7 +409,7 @@ do_arglist(
p = file_pat_to_reg_pat(p, NULL, NULL, FALSE);
if (p == NULL)
break;
- regmatch.regprog = vim_regcomp(p, p_magic ? RE_MAGIC : 0);
+ regmatch.regprog = vim_regcomp(p, magic_isset() ? RE_MAGIC : 0);
if (regmatch.regprog == NULL)
{
vim_free(p);