summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-15 23:03:01 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-15 23:03:01 +0000
commit9d47f1707bab4d318febcfbd65c692b2b3962f42 (patch)
tree9d1a7c7c1e9309915133bbf009d0af41ba45f126 /src/edit.c
parent7d47b6eed707db9af160ec517b71e1f9fdac1a0f (diff)
downloadvim-git-9d47f1707bab4d318febcfbd65c692b2b3962f42.tar.gz
updated for version 7.0225
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/edit.c b/src/edit.c
index a43891f71..b24c514fc 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2146,11 +2146,11 @@ ins_compl_add(str, len, icase, fname, kind, extra, info, cdir, flags)
else
match->cp_fname = NULL;
match->cp_flags = flags;
- if (kind != NULL)
+ if (kind != NULL && *kind != NUL)
match->cp_kind = vim_strsave(kind);
- if (extra != NULL)
+ if (extra != NULL && *extra != NUL)
match->cp_extra = vim_strsave(extra);
- if (info != NULL)
+ if (info != NULL && *info != NUL)
match->cp_info = vim_strsave(info);
/*