0
0
mirror of https://github.com/vim/vim.git synced 2025-09-01 21:03:39 -04:00

updated for version 7.3.044

Problem:    The preview window opened by the popup menu is larger than
            specified with 'previewheight'. (Benjamin Haskell)
Solution:   Use 'previewheight' if it's set and smaller.
This commit is contained in:
Bram Moolenaar 2010-10-27 17:11:15 +02:00
parent 3ca71f1f1f
commit ee236d0d19
2 changed files with 6 additions and 1 deletions

View File

@ -558,8 +558,11 @@ pum_set_selected(n, repeat)
win_T *curwin_save = curwin;
int res = OK;
/* Open a preview window. 3 lines by default. */
/* Open a preview window. 3 lines by default. Prefer
* 'previewheight' if set and smaller. */
g_do_tagpreview = 3;
if (p_pvh > 0 && p_pvh < g_do_tagpreview)
g_do_tagpreview = p_pvh;
resized = prepare_tagpreview(FALSE);
g_do_tagpreview = 0;

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
44,
/**/
43,
/**/