diff options
author | Yatao Li <yatli@microsoft.com> | 2020-03-22 17:53:45 +0800 |
---|---|---|
committer | Yatao Li <yatli@microsoft.com> | 2020-04-28 01:54:16 +0800 |
commit | e34684b2ad02e759dec39c0f0958c7882120ecdc (patch) | |
tree | cc2024053865052d34e7e8ebebbd45a4064d29ee /src/nvim/api/ui.c | |
parent | d372c804aa33a272f6659f6d08d5dfee704d30d9 (diff) | |
download | rneovim-e34684b2ad02e759dec39c0f0958c7882120ecdc.tar.gz rneovim-e34684b2ad02e759dec39c0f0958c7882120ecdc.tar.bz2 rneovim-e34684b2ad02e759dec39c0f0958c7882120ecdc.zip |
api/ui: simplify popup menu position get/set logic; fix test
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r-- | src/nvim/api/ui.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index 300f409a0f..717713b948 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -349,15 +349,15 @@ void nvim_ui_pum_set_height(uint64_t channel_id, Integer height, Error *err) ui->pum_nlines = (int)height; } -/// Tells Nvim the geometry of the popumenu, to align floating -/// windows with an external popup menu. Note that this method -/// is not to be confused with |nvim_ui_pum_set_height()|, which -/// sets the number of visible items in the popup menu, while -/// this function sets the bounding box of the popup menu, -/// including visual decorations such as boarders and sliders. -/// Floats need not use the same font size, nor be anchored to -/// exact grid corners, so one can set floating-point numbers -/// to the popup menu geometry. +/// Tells Nvim the geometry of the popumenu, to align floating windows with an +/// external popup menu. +/// +/// Note that this method is not to be confused with |nvim_ui_pum_set_height()|, +/// which sets the number of visible items in the popup menu, while this +/// function sets the bounding box of the popup menu, including visual +/// decorations such as boarders and sliders. Floats need not use the same font +/// size, nor be anchored to exact grid corners, so one can set floating-point +/// numbers to the popup menu geometry. /// /// @param channel_id /// @param width Popupmenu width. |