diff options
author | ZyX <kp-pav@yandex.ru> | 2018-04-22 20:16:58 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2018-04-22 20:16:58 +0300 |
commit | f9b728e2f8d2c1d47325c5152f1d11a2ae22f1f8 (patch) | |
tree | 31b219d9375b0e1c6a91ec0403cb086770e4725d | |
parent | 9da2e7b0211d511720dacaf380280d73c705dbf3 (diff) | |
download | rneovim-f9b728e2f8d2c1d47325c5152f1d11a2ae22f1f8.tar.gz rneovim-f9b728e2f8d2c1d47325c5152f1d11a2ae22f1f8.tar.bz2 rneovim-f9b728e2f8d2c1d47325c5152f1d11a2ae22f1f8.zip |
tui: Silence PVS/V560: condition is set to true in prev-previous if()
-rw-r--r-- | src/nvim/tui/tui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index dcb1f850b7..57c7e29c1e 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1770,7 +1770,8 @@ static void flush_buf(UI *ui) bufp++; } - if (!data->busy && data->is_invisible) { + if (!data->busy) { + assert(data->is_invisible); // not busy and the cursor is invisible. Write a "cursor normal" command // after writing the buffer. bufp->base = data->norm; |