diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-04-21 10:55:54 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-04-26 12:59:51 +0200 |
commit | eeb1099bc419ce265c03cc82b1b3bc9cfc1ea208 (patch) | |
tree | 5dfe169f08e072d1644210c61df5ee47d9ef7058 /src/nvim/ui_compositor.c | |
parent | bb7d3790bf08b5519623d261d8235bad77b5c0dd (diff) | |
download | rneovim-eeb1099bc419ce265c03cc82b1b3bc9cfc1ea208.tar.gz rneovim-eeb1099bc419ce265c03cc82b1b3bc9cfc1ea208.tar.bz2 rneovim-eeb1099bc419ce265c03cc82b1b3bc9cfc1ea208.zip |
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)
Diffstat (limited to 'src/nvim/ui_compositor.c')
-rw-r--r-- | src/nvim/ui_compositor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ui_compositor.c b/src/nvim/ui_compositor.c index a2e9266fbb..c1e4a40ef2 100644 --- a/src/nvim/ui_compositor.c +++ b/src/nvim/ui_compositor.c @@ -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 |