diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-01 09:05:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 09:05:25 +0800 |
commit | bd2d0edcbf4e98e05edff13f344865fcafac56b5 (patch) | |
tree | 13253884d9c197f8355227b8e248d5d3750bd73d /src/nvim/autocmd.c | |
parent | 282dda643ae598d5c8e9f34c379d931563b4891b (diff) | |
download | rneovim-bd2d0edcbf4e98e05edff13f344865fcafac56b5.tar.gz rneovim-bd2d0edcbf4e98e05edff13f344865fcafac56b5.tar.bz2 rneovim-bd2d0edcbf4e98e05edff13f344865fcafac56b5.zip |
fix: clang warnings (#21247)
Diffstat (limited to 'src/nvim/autocmd.c')
-rw-r--r-- | src/nvim/autocmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c index 6efb05ab45..57d829d186 100644 --- a/src/nvim/autocmd.c +++ b/src/nvim/autocmd.c @@ -1427,6 +1427,7 @@ void aucmd_prepbuf(aco_save_T *aco, buf_T *buf) // then we can't reliably execute the autocmd, // return with "curbuf" unequal "buf". if (auc_win == NULL) { + assert(curbuf != buf); return; } } |