diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-16 19:50:23 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-16 19:50:23 +0300 |
commit | dd5b0cc17a1ec6925c6cd7a5be23eb78bf953f76 (patch) | |
tree | 3c3cb312cf7fc7de36f401915627387e9753aae0 | |
parent | fb4754104b50baa0eb489e5c9b50c1d37523f2d3 (diff) | |
download | rneovim-dd5b0cc17a1ec6925c6cd7a5be23eb78bf953f76.tar.gz rneovim-dd5b0cc17a1ec6925c6cd7a5be23eb78bf953f76.tar.bz2 rneovim-dd5b0cc17a1ec6925c6cd7a5be23eb78bf953f76.zip |
edit: Copy assert to before the warning
-rw-r--r-- | src/nvim/edit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 1ca5424736..51d0847bc7 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -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) |