diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-15 23:03:01 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-15 23:03:01 +0000 |
commit | 9d47f1707bab4d318febcfbd65c692b2b3962f42 (patch) | |
tree | 9d1a7c7c1e9309915133bbf009d0af41ba45f126 /src/edit.c | |
parent | 7d47b6eed707db9af160ec517b71e1f9fdac1a0f (diff) | |
download | vim-git-9d47f1707bab4d318febcfbd65c692b2b3962f42.tar.gz |
updated for version 7.0225
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 6 |
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); /* |