Hi Bram and list,
As the title says.
I attach a patch that contains the test.
See the added test for the reproduction steps.
--
Best regards,
Hirohito Higashi (h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/5441f981-eca2-480e-a785-8819e7a8ed6f%40googlegroups.com.
diff --git a/src/popupmenu.c b/src/popupmenu.c
index 55845cf2d..10d367a3b 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -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!
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index 041d83465..8ca7f1c57 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -2896,6 +2896,12 @@ func Test_popupmenu_info_border()
call term_sendkeys(buf, "\<C-N>\<C-N>")
call VerifyScreenDump(buf, 'Test_popupwin_infopopup_5', {})
+ " Test that the popupmenu's scrollbar and infopopup do not overlap
+ call term_sendkeys(buf, "\<Esc>")
+ call term_sendkeys(buf, ":set pumheight=3\<CR>")
+ call term_sendkeys(buf, "cc\<C-X>\<C-U>")
+ call VerifyScreenDump(buf, 'Test_popupwin_infopopup_6', {})
+
call StopVimInTerminal(buf)
call delete('XtestInfoPopup')
endfunc