Karsten Hopp b594b0
To: vim-dev@vim.org
Karsten Hopp b594b0
Subject: Patch 7.0.099
Karsten Hopp b594b0
Fcc: outbox
Karsten Hopp b594b0
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b594b0
Mime-Version: 1.0
Karsten Hopp b594b0
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp b594b0
Content-Transfer-Encoding: 8bit
Karsten Hopp b594b0
------------
Karsten Hopp b594b0
Karsten Hopp b594b0
Patch 7.0.099
Karsten Hopp b594b0
Problem:    GUI: When the popup menu is visible using the scrollbar messes up
Karsten Hopp b594b0
	    the display.
Karsten Hopp b594b0
Solution:   Disallow scrolling the current window.  Redraw the popup menu
Karsten Hopp b594b0
	    after scrolling another window.
Karsten Hopp b594b0
Files:	    src/gui.c
Karsten Hopp b594b0
Karsten Hopp b594b0
Karsten Hopp b594b0
*** ../vim-7.0.098/src/gui.c	Tue Aug 29 18:16:37 2006
Karsten Hopp b594b0
--- src/gui.c	Sun Sep 10 21:28:57 2006
Karsten Hopp b594b0
***************
Karsten Hopp b594b0
*** 3734,3739 ****
Karsten Hopp b594b0
--- 3734,3745 ----
Karsten Hopp b594b0
      if (dont_scroll || input_available())
Karsten Hopp b594b0
  	return;
Karsten Hopp b594b0
  #endif
Karsten Hopp b594b0
+ #ifdef FEAT_INS_EXPAND
Karsten Hopp b594b0
+     /* Disallow scrolling the current window when the completion popup menu is
Karsten Hopp b594b0
+      * visible. */
Karsten Hopp b594b0
+     if ((sb->wp == NULL || sb->wp == curwin) && pum_visible())
Karsten Hopp b594b0
+ 	return;
Karsten Hopp b594b0
+ #endif
Karsten Hopp b594b0
  
Karsten Hopp b594b0
  #ifdef FEAT_RIGHTLEFT
Karsten Hopp b594b0
      if (sb->wp == NULL && curwin->w_p_rl)
Karsten Hopp b594b0
***************
Karsten Hopp b594b0
*** 4207,4212 ****
Karsten Hopp b594b0
--- 4213,4224 ----
Karsten Hopp b594b0
  	redraw_win_later(wp, VALID);
Karsten Hopp b594b0
  	updateWindow(wp);   /* update window, status line, and cmdline */
Karsten Hopp b594b0
      }
Karsten Hopp b594b0
+ 
Karsten Hopp b594b0
+ #ifdef FEAT_INS_EXPAND
Karsten Hopp b594b0
+     /* May need to redraw the popup menu. */
Karsten Hopp b594b0
+     if (pum_visible())
Karsten Hopp b594b0
+ 	pum_redraw();
Karsten Hopp b594b0
+ #endif
Karsten Hopp b594b0
  
Karsten Hopp b594b0
      return (wp == curwin && !equalpos(curwin->w_cursor, old_cursor));
Karsten Hopp b594b0
  }
Karsten Hopp b594b0
*** ../vim-7.0.098/src/version.c	Sun Sep 10 21:05:39 2006
Karsten Hopp b594b0
--- src/version.c	Sun Sep 10 21:35:27 2006
Karsten Hopp b594b0
***************
Karsten Hopp b594b0
*** 668,669 ****
Karsten Hopp b594b0
--- 668,671 ----
Karsten Hopp b594b0
  {   /* Add new patch number below this line */
Karsten Hopp b594b0
+ /**/
Karsten Hopp b594b0
+     99,
Karsten Hopp b594b0
  /**/
Karsten Hopp b594b0
Karsten Hopp b594b0
-- 
Karsten Hopp b594b0
FATHER: We are here today to witness the union of two young people in the
Karsten Hopp b594b0
        joyful bond of the holy wedlock.  Unfortunately, one of them, my son
Karsten Hopp b594b0
        Herbert, has just fallen to his death.
Karsten Hopp b594b0
   [Murmurs from CROWD;  the BRIDE smiles with relief, coughs.]
Karsten Hopp b594b0
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp b594b0
Karsten Hopp b594b0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b594b0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b594b0
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp b594b0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///