Karsten Hopp f75ee0
To: vim_dev@googlegroups.com
Karsten Hopp f75ee0
Subject: Patch 7.3.044
Karsten Hopp f75ee0
Fcc: outbox
Karsten Hopp f75ee0
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp f75ee0
Mime-Version: 1.0
Karsten Hopp f75ee0
Content-Type: text/plain; charset=UTF-8
Karsten Hopp f75ee0
Content-Transfer-Encoding: 8bit
Karsten Hopp f75ee0
------------
Karsten Hopp f75ee0
Karsten Hopp f75ee0
Patch 7.3.044
Karsten Hopp f75ee0
Problem:    The preview window opened by the popup menu is larger than
Karsten Hopp f75ee0
	    specified with 'previewheight'. (Benjamin Haskell)
Karsten Hopp f75ee0
Solution:   Use 'previewheight' if it's set and smaller.
Karsten Hopp f75ee0
Files:	    src/popupmnu.c
Karsten Hopp f75ee0
Karsten Hopp f75ee0
Karsten Hopp f75ee0
*** ../vim-7.3.043/src/popupmnu.c	2010-08-15 21:57:25.000000000 +0200
Karsten Hopp f75ee0
--- src/popupmnu.c	2010-10-27 17:04:31.000000000 +0200
Karsten Hopp f75ee0
***************
Karsten Hopp f75ee0
*** 558,565 ****
Karsten Hopp f75ee0
  	    win_T	*curwin_save = curwin;
Karsten Hopp f75ee0
  	    int		res = OK;
Karsten Hopp f75ee0
  
Karsten Hopp f75ee0
! 	    /* Open a preview window.  3 lines by default. */
Karsten Hopp f75ee0
  	    g_do_tagpreview = 3;
Karsten Hopp f75ee0
  	    resized = prepare_tagpreview(FALSE);
Karsten Hopp f75ee0
  	    g_do_tagpreview = 0;
Karsten Hopp f75ee0
  
Karsten Hopp f75ee0
--- 558,568 ----
Karsten Hopp f75ee0
  	    win_T	*curwin_save = curwin;
Karsten Hopp f75ee0
  	    int		res = OK;
Karsten Hopp f75ee0
  
Karsten Hopp f75ee0
! 	    /* Open a preview window.  3 lines by default.  Prefer
Karsten Hopp f75ee0
! 	     * 'previewheight' if set and smaller. */
Karsten Hopp f75ee0
  	    g_do_tagpreview = 3;
Karsten Hopp f75ee0
+ 	    if (p_pvh > 0 && p_pvh < g_do_tagpreview)
Karsten Hopp f75ee0
+ 		g_do_tagpreview = p_pvh;
Karsten Hopp f75ee0
  	    resized = prepare_tagpreview(FALSE);
Karsten Hopp f75ee0
  	    g_do_tagpreview = 0;
Karsten Hopp f75ee0
  
Karsten Hopp f75ee0
*** ../vim-7.3.043/src/version.c	2010-10-27 16:49:41.000000000 +0200
Karsten Hopp f75ee0
--- src/version.c	2010-10-27 17:08:37.000000000 +0200
Karsten Hopp f75ee0
***************
Karsten Hopp f75ee0
*** 716,717 ****
Karsten Hopp f75ee0
--- 716,719 ----
Karsten Hopp f75ee0
  {   /* Add new patch number below this line */
Karsten Hopp f75ee0
+ /**/
Karsten Hopp f75ee0
+     44,
Karsten Hopp f75ee0
  /**/
Karsten Hopp f75ee0
Karsten Hopp f75ee0
-- 
Karsten Hopp f75ee0
"It's so simple to be wise.  Just think of something stupid to say
Karsten Hopp f75ee0
and then don't say it."        -- Sam Levenson
Karsten Hopp f75ee0
Karsten Hopp f75ee0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp f75ee0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp f75ee0
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp f75ee0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///