Skip to content

Commit

Permalink
updated for version 7.3.044
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brammool committed Oct 27, 2010
1 parent aa49bfd commit 41a6307
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/popupmnu.c
Expand Up @@ -558,8 +558,11 @@ pum_set_selected(n, repeat)
win_T *curwin_save = curwin; win_T *curwin_save = curwin;
int res = OK; 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; g_do_tagpreview = 3;
if (p_pvh > 0 && p_pvh < g_do_tagpreview)
g_do_tagpreview = p_pvh;
resized = prepare_tagpreview(FALSE); resized = prepare_tagpreview(FALSE);
g_do_tagpreview = 0; g_do_tagpreview = 0;


Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -714,6 +714,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
44,
/**/ /**/
43, 43,
/**/ /**/
Expand Down

0 comments on commit 41a6307

Please sign in to comment.