summaryrefslogtreecommitdiffstats
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c
index 1c664129a6..faf6ffbb47 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -3738,9 +3738,9 @@ nv_ident(cmdarg_T *cap)
else
{
if (cmdchar == '*')
- aux_ptr = (char_u *)(p_magic ? "/.*~[^$\\" : "/^$\\");
+ aux_ptr = (char_u *)(magic_isset() ? "/.*~[^$\\" : "/^$\\");
else if (cmdchar == '#')
- aux_ptr = (char_u *)(p_magic ? "/?.*~[^$\\" : "/?^$\\");
+ aux_ptr = (char_u *)(magic_isset() ? "/?.*~[^$\\" : "/?^$\\");
else if (tag_cmd)
{
if (curbuf->b_help)