aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/match.c')
-rw-r--r--src/nvim/match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/match.c b/src/nvim/match.c
index 3aa82527aa..54bd3066ab 100644
--- a/src/nvim/match.c
+++ b/src/nvim/match.c
@@ -86,7 +86,7 @@ static int match_add(win_T *wp, const char *const grp, const char *const pat, in
m = xcalloc(1, sizeof(matchitem_T));
m->id = id;
m->priority = prio;
- m->pattern = pat == NULL ? NULL: (char_u *)xstrdup(pat);
+ m->pattern = pat == NULL ? NULL: xstrdup(pat);
m->hlg_id = hlg_id;
m->match.regprog = regprog;
m->match.rmm_ic = false;