mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
edit: Copy assert to before the warning
This commit is contained in:
parent
fb4754104b
commit
dd5b0cc17a
@ -3419,6 +3419,7 @@ static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg)
|
|||||||
else
|
else
|
||||||
return; /* nothing to do */
|
return; /* nothing to do */
|
||||||
}
|
}
|
||||||
|
assert(ptr != NULL);
|
||||||
if (compl_orig_text != NULL) {
|
if (compl_orig_text != NULL) {
|
||||||
p = compl_orig_text;
|
p = compl_orig_text;
|
||||||
for (len = 0; p[len] != NUL && p[len] == ptr[len]; ++len)
|
for (len = 0; p[len] != NUL && p[len] == ptr[len]; ++len)
|
||||||
|
Loading…
Reference in New Issue
Block a user