mirror of
https://github.com/neovim/neovim.git
synced 2026-08-26 17:11:48 +00:00
ui_compositior: handle multiple displayed floats in the same tick
problem: the order of non-focuesed float opened before focused float is wrong (sunjon) solution: check curwin and correct the order (bfredl)
This commit is contained in:
@@ -180,7 +180,8 @@ bool ui_comp_put_grid(ScreenGrid *grid, int row, int col, int height, int width,
|
||||
if (kv_A(layers, insert_at-1) == &pum_grid && (grid != &msg_grid)) {
|
||||
insert_at--;
|
||||
}
|
||||
if (insert_at > 1 && !on_top) {
|
||||
if (curwin && kv_A(layers, insert_at-1) == &curwin->w_grid_alloc
|
||||
&& !on_top) {
|
||||
insert_at--;
|
||||
}
|
||||
// not found: new grid
|
||||
|
||||
Reference in New Issue
Block a user