home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.329 < prev    next >
Encoding:
Internet Message Format  |  2014-06-16  |  1.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.329
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.329
  11. Problem:    When moving the cursor and then switching to another window the
  12.         previous window isn't scrolled. (Yukihiro Nakadaira)
  13. Solution:   Call update_topline() before leaving the window. (Christian
  14.         Brabandt)
  15. Files:        src/window.c
  16.  
  17.  
  18. *** ../vim-7.4.328/src/window.c    2014-06-14 12:53:27.394152699 +0200
  19. --- src/window.c    2014-06-17 13:44:48.812075178 +0200
  20. ***************
  21. *** 4250,4255 ****
  22. --- 4250,4260 ----
  23.       /* sync undo before leaving the current buffer */
  24.       if (undo_sync && curbuf != wp->w_buffer)
  25.       u_sync(FALSE);
  26. +     /* Might need to scroll the old window before switching, e.g., when the
  27. +      * cursor was moved. */
  28. +     update_topline();
  29.       /* may have to copy the buffer options when 'cpo' contains 'S' */
  30.       if (wp->w_buffer != curbuf)
  31.       buf_copy_options(wp->w_buffer, BCO_ENTER | BCO_NOHELP);
  32. *** ../vim-7.4.328/src/version.c    2014-06-17 13:50:06.148087184 +0200
  33. --- src/version.c    2014-06-17 13:51:09.960089598 +0200
  34. ***************
  35. *** 736,737 ****
  36. --- 736,739 ----
  37.   {   /* Add new patch number below this line */
  38. + /**/
  39. +     329,
  40.   /**/
  41.  
  42. -- 
  43. FATHER:       Make sure the Prince doesn't leave this room until I come and
  44.               get him.
  45. FIRST GUARD:  Not ... to leave the room ... even if you come and get him.
  46. FATHER:       No.  Until I come and get him.
  47. SECOND GUARD: Hic.
  48.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  49.  
  50.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  51. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  52. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  53.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  54.