diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-04-27 09:25:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-27 09:25:02 +0200 |
| commit | 53f11dcfc7139fe6c8a6b114db4bfec5d91005a9 (patch) | |
| tree | e9bfbaf10fc6681bbbcba0a0eabdce8a6f6840b5 /src/nvim/tui | |
| parent | 009ccfe170ada2c78ca7feabda567a7e901fb30b (diff) | |
| parent | 4ce8521ee4a72e050bd187c2986708c5f98c7442 (diff) | |
| download | rneovim-53f11dcfc7139fe6c8a6b114db4bfec5d91005a9.tar.gz rneovim-53f11dcfc7139fe6c8a6b114db4bfec5d91005a9.tar.bz2 rneovim-53f11dcfc7139fe6c8a6b114db4bfec5d91005a9.zip | |
Merge #8218 'Fix errors reported by PVS'
closes #4983
Diffstat (limited to 'src/nvim/tui')
| -rw-r--r-- | src/nvim/tui/tui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 72a25b0b59..65957626cb 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -605,8 +605,7 @@ static void cursor_goto(UI *ui, int row, int col) int n = col - grid->col; if (n <= (row == grid->row ? 4 : 2) && cheap_to_print(ui, grid->row, grid->col, n)) { - UGRID_FOREACH_CELL(grid, grid->row, grid->row, - grid->col, col - 1, { + UGRID_FOREACH_CELL(grid, grid->row, grid->row, grid->col, col - 1, { print_cell(ui, cell); }); } @@ -1771,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; |