edit: Copy assert to before the warning

This commit is contained in:
ZyX 2017-04-16 19:50:23 +03:00
parent fb4754104b
commit dd5b0cc17a

View File

@ -3419,6 +3419,7 @@ static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg)
else
return; /* nothing to do */
}
assert(ptr != NULL);
if (compl_orig_text != NULL) {
p = compl_orig_text;
for (len = 0; p[len] != NUL && p[len] == ptr[len]; ++len)