summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-10-03 13:22:23 +0000
committerBram Moolenaar <Bram@vim.org>2006-10-03 13:22:23 +0000
commit132283f943df785d6c4ea89317250fa13bea0315 (patch)
tree5565c899ea7873cb03d6406998ccbd1775203919 /src/edit.c
parent658ada69f4fe6ba337228d2cb71bb1cafe0d26e9 (diff)
downloadvim-132283f943df785d6c4ea89317250fa13bea0315.zip
updated for version 7.0-113
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index 94456aea7..4858d0255 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -3206,7 +3206,8 @@ ins_compl_addfrommatch()
for (cp = compl_shown_match->cp_next; cp != NULL
&& cp != compl_first_match; cp = cp->cp_next)
{
- if (ins_compl_equal(cp, compl_leader,
+ if (compl_leader == NULL
+ || ins_compl_equal(cp, compl_leader,
(int)STRLEN(compl_leader)))
{
p = cp->cp_str;