diff options
Diffstat (limited to 'src/insexpand.c')
-rw-r--r-- | src/insexpand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insexpand.c b/src/insexpand.c index 8f4f9763d3..73b2218e13 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -1216,7 +1216,7 @@ ins_compl_dictionaries( } else { - regmatch.regprog = vim_regcomp(pat, p_magic ? RE_MAGIC : 0); + regmatch.regprog = vim_regcomp(pat, magic_isset() ? RE_MAGIC : 0); if (regmatch.regprog == NULL) goto theend; } @@ -4175,7 +4175,7 @@ quote_meta(char_u *dest, char_u *src, int len) break; // FALLTHROUGH case '~': - if (!p_magic) // quote these only if magic is set + if (!magic_isset()) // quote these only if magic is set break; // FALLTHROUGH case '\\': |