]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.044 v7.3.044
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 15:11:15 +0000 (17:11 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 15:11:15 +0000 (17:11 +0200)
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.

src/popupmnu.c
src/version.c

index 0afa0b7bc0ffc465bd1790d00ec5c7746f55cbe6..44ed878045d0808cc2f7a38b191c7391d5e420d0 100644 (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;
 
index 344fc3b6593235fb41cc3239485d33b782ff54d7..8e5e90af9b9f84833a0eeb3e0446490a30653565 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    44,
 /**/
     43,
 /**/