diff options
author | Serg Tereshchenko <serg.partizan@gmail.com> | 2021-06-12 11:09:15 +0300 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-06-12 14:34:02 +0200 |
commit | 8d23941af879536d0aa174a6a6b83c19b1174b6d (patch) | |
tree | 292f0de791ef0e1bef60d1a30c842344c0216db3 /src | |
parent | d09b8ad715ca327766ed9f32c45e1776dae679f4 (diff) | |
download | rneovim-8d23941af879536d0aa174a6a6b83c19b1174b6d.tar.gz rneovim-8d23941af879536d0aa174a6a6b83c19b1174b6d.tar.bz2 rneovim-8d23941af879536d0aa174a6a6b83c19b1174b6d.zip |
fix(ui): Fix pum incorrect position in multigrid mode
Refs #12985
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/popupmnu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/popupmnu.c b/src/nvim/popupmnu.c index 7d452d6797..f620517aff 100644 --- a/src/nvim/popupmnu.c +++ b/src/nvim/popupmnu.c @@ -440,7 +440,7 @@ void pum_redraw(void) } if (ui_has(kUIMultigrid)) { const char *anchor = pum_above ? "SW" : "NW"; - int row_off = pum_above ? pum_height : 0; + int row_off = pum_above ? -pum_height : 0; ui_call_win_float_pos(pum_grid.handle, -1, cstr_to_string(anchor), pum_anchor_grid, pum_row-row_off, pum_col-col_off, false, pum_grid.zindex); |