Karsten Hopp 856423
To: vim_dev@googlegroups.com
Karsten Hopp 856423
Subject: Patch 7.4.329
Karsten Hopp 856423
Fcc: outbox
Karsten Hopp 856423
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 856423
Mime-Version: 1.0
Karsten Hopp 856423
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 856423
Content-Transfer-Encoding: 8bit
Karsten Hopp 856423
------------
Karsten Hopp 856423
Karsten Hopp 856423
Patch 7.4.329
Karsten Hopp 856423
Problem:    When moving the cursor and then switching to another window the
Karsten Hopp 856423
	    previous window isn't scrolled. (Yukihiro Nakadaira)
Karsten Hopp 856423
Solution:   Call update_topline() before leaving the window. (Christian
Karsten Hopp 856423
	    Brabandt)
Karsten Hopp 856423
Files:	    src/window.c
Karsten Hopp 856423
Karsten Hopp 856423
Karsten Hopp 856423
*** ../vim-7.4.328/src/window.c	2014-06-14 12:53:27.394152699 +0200
Karsten Hopp 856423
--- src/window.c	2014-06-17 13:44:48.812075178 +0200
Karsten Hopp 856423
***************
Karsten Hopp 856423
*** 4250,4255 ****
Karsten Hopp 856423
--- 4250,4260 ----
Karsten Hopp 856423
      /* sync undo before leaving the current buffer */
Karsten Hopp 856423
      if (undo_sync && curbuf != wp->w_buffer)
Karsten Hopp 856423
  	u_sync(FALSE);
Karsten Hopp 856423
+ 
Karsten Hopp 856423
+     /* Might need to scroll the old window before switching, e.g., when the
Karsten Hopp 856423
+      * cursor was moved. */
Karsten Hopp 856423
+     update_topline();
Karsten Hopp 856423
+ 
Karsten Hopp 856423
      /* may have to copy the buffer options when 'cpo' contains 'S' */
Karsten Hopp 856423
      if (wp->w_buffer != curbuf)
Karsten Hopp 856423
  	buf_copy_options(wp->w_buffer, BCO_ENTER | BCO_NOHELP);
Karsten Hopp 856423
*** ../vim-7.4.328/src/version.c	2014-06-17 13:50:06.148087184 +0200
Karsten Hopp 856423
--- src/version.c	2014-06-17 13:51:09.960089598 +0200
Karsten Hopp 856423
***************
Karsten Hopp 856423
*** 736,737 ****
Karsten Hopp 856423
--- 736,739 ----
Karsten Hopp 856423
  {   /* Add new patch number below this line */
Karsten Hopp 856423
+ /**/
Karsten Hopp 856423
+     329,
Karsten Hopp 856423
  /**/
Karsten Hopp 856423
Karsten Hopp 856423
-- 
Karsten Hopp 856423
FATHER:       Make sure the Prince doesn't leave this room until I come and
Karsten Hopp 856423
              get him.
Karsten Hopp 856423
FIRST GUARD:  Not ... to leave the room ... even if you come and get him.
Karsten Hopp 856423
FATHER:       No.  Until I come and get him.
Karsten Hopp 856423
SECOND GUARD: Hic.
Karsten Hopp 856423
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 856423
Karsten Hopp 856423
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 856423
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 856423
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 856423
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///