diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-21 17:42:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 17:42:59 +0800 |
commit | 77b9f1eac5616fc018b29a2e968c2e6a84b5538d (patch) | |
tree | c45247879c0e238788b94f87abe1986e7a2ea6fc /src/nvim/insexpand.c | |
parent | c15e9d3746ee0aa6a9d80596bffc19e9ac9612bc (diff) | |
download | rneovim-77b9f1eac5616fc018b29a2e968c2e6a84b5538d.tar.gz rneovim-77b9f1eac5616fc018b29a2e968c2e6a84b5538d.tar.bz2 rneovim-77b9f1eac5616fc018b29a2e968c2e6a84b5538d.zip |
refactor: fix clang warnings (#19453)
Diffstat (limited to 'src/nvim/insexpand.c')
-rw-r--r-- | src/nvim/insexpand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c index 141759de81..8ccda5c7cd 100644 --- a/src/nvim/insexpand.c +++ b/src/nvim/insexpand.c @@ -2509,6 +2509,7 @@ static int ins_compl_get_exp(pos_T *ini) } else if (ins_buf != curbuf && !buf_valid(ins_buf)) { ins_buf = curbuf; // In case the buffer was wiped out. } + assert(ins_buf != NULL); compl_old_match = compl_curr_match; // remember the last current match pos = (compl_direction == FORWARD) ? &last_match_pos : &first_match_pos; |