mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
PVS/V501: ui_compositor.c: identical sub-expressions #9673
This commit is contained in:
parent
2816bc8620
commit
7e6fce0698
@ -157,7 +157,7 @@ bool ui_comp_put_grid(ScreenGrid *grid, int row, int col, int height, int width,
|
||||
kv_push(layers, grid);
|
||||
if (insert_at < kv_size(layers)-1) {
|
||||
for (size_t i = kv_size(layers)-1; i > insert_at; i--) {
|
||||
kv_A(layers, i) = kv_A(layers, i-i);
|
||||
kv_A(layers, i) = kv_A(layers, i-1);
|
||||
}
|
||||
kv_A(layers, insert_at) = grid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user