diff options
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index b868c90108..7aea47cfff 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -635,7 +635,7 @@ static int expand_set_opt_listflag(optexpand_T *args, char *flags, int *numMatch // existing flag. Just skip it to avoid duplicate. continue; } - (*matches)[count++] = xstrnsave(flag, 1); + (*matches)[count++] = xmemdupz(flag, 1); } } |