equalsraf / neovim-qt

Neovim client library and GUI, in Qt5.
https://github.com/equalsraf/neovim-qt/wiki
ISC License
1.85k stars 171 forks source link

GUI popup menu location is not honored #524

Closed anasem closed 4 years ago

anasem commented 5 years ago

When using ncm2 autocomplete plugin. The GUI popup menu is misplaced when neovim-qt is not in full screen (using i3 wm). When disabling GUI pop up menu, everything works perfectly.

Neovim-qt version: 0.2.21-1

GUI

Expected behavior: No_GUI

jgehrig commented 5 years ago

I agree, the current behavior is confusing. We should try to more closely mimic the Terminal UI behavior.

Let me know if you can build, test, or have feedback! :smile:

jgehrig commented 5 years ago

FYI, the current behavior looks intentional.

Here is the logic causing the behavior you see: https://github.com/equalsraf/neovim-qt/blob/663f2b778b730f48b6ed1c29d0faf8db4c668c95/src/gui/shell.cpp#L566-L600

You can see the half-shell re-size, and conditional movement of the anchor position.

jgehrig commented 4 years ago

The :GuiPopupmenu location improvements are available as of v0.2.13

Marking as closed.