summaryrefslogtreecommitdiff
path: root/src/insexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index 259acb91a..027852268 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -2313,7 +2313,7 @@ ins_compl_add_tv(typval_T *tv, int dir)
else
{
word = tv_get_string_chk(tv);
- vim_memset(cptext, 0, sizeof(cptext));
+ CLEAR_FIELD(cptext);
}
if (word == NULL || (!empty && *word == NUL))
return FAIL;