diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-08 13:04:18 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-05-08 13:22:09 +0200 |
commit | df41d884a7b788bb38060e732f1a7abb08de7b1b (patch) | |
tree | c7687eef00b35bdc02ba37437a70b7c37dda4026 /src/nvim/ui_compositor.c | |
parent | 0d3f17a6c317b26cdc319b48e25e1574f3a0e9fd (diff) | |
download | rneovim-df41d884a7b788bb38060e732f1a7abb08de7b1b.tar.gz rneovim-df41d884a7b788bb38060e732f1a7abb08de7b1b.tar.bz2 rneovim-df41d884a7b788bb38060e732f1a7abb08de7b1b.zip |
refactor(grid): move out grid_* functions from screen.c
Also normalize some types. use "size_t" for unsigned array offsets.
Fix -Wconversion issues missed as screen.c is missing this check.
Diffstat (limited to 'src/nvim/ui_compositor.c')
-rw-r--r-- | src/nvim/ui_compositor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ui_compositor.c b/src/nvim/ui_compositor.c index 60ad8609a4..f76158ff12 100644 --- a/src/nvim/ui_compositor.c +++ b/src/nvim/ui_compositor.c @@ -635,7 +635,7 @@ static void ui_comp_grid_scroll(UI *ui, Integer grid, Integer top, Integer bot, // ideally win_update() should keep track of this itself and not scroll // the invalid space. if (curgrid->attrs[curgrid->line_offset[r - curgrid->comp_row] - + left - curgrid->comp_col] >= 0) { + + (size_t)left - (size_t)curgrid->comp_col] >= 0) { compose_line(r, left, right, 0); } } |