lkundrak / rpms / vim

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