0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.2324: with of scrollbar in popup menu not taken into account

Problem:    With of scrollbar in popup menu not taken into account.
Solution:   Add the width of the scrollbar.
This commit is contained in:
Bram Moolenaar
2019-11-21 12:12:35 +01:00
parent 403f3eb4c1
commit 202c3f7e3e
4 changed files with 24 additions and 2 deletions

View File

@@ -628,7 +628,7 @@ pum_redraw(void)
void
pum_position_info_popup(win_T *wp)
{
int col = pum_col + pum_width + 1;
int col = pum_col + pum_width + pum_scrollbar + 1;
int row = pum_row;
int botpos = POPPOS_BOTLEFT;
@@ -745,7 +745,7 @@ pum_set_selected(int n, int repeat UNUSED)
#if defined(FEAT_QUICKFIX)
/*
* Show extra info in the preview window if there is something and
* 'completeopt' contains "preview" or "popup".
* 'completeopt' contains "preview" or "popup" or "popuphidden".
* Skip this when tried twice already.
* Skip this also when there is not much room.
* NOTE: Be very careful not to sync undo!