diff src/edit.c @ 987:e625dad74346 v7.0.113

updated for version 7.0-113
author vimboss
date Tue, 03 Oct 2006 13:22:23 +0000
parents 0e3e208b4b90
children 3f8cf4c668c3
line wrap: on
line diff
--- 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;