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.2 / 7.2.375 < prev    next >
Encoding:
Internet Message Format  |  2010-02-23  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.375
  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.2.375
  11. Problem:    ml_get errors when using ":bprevious" in a BufEnter autocmd.
  12.         (Dominique Pelle)
  13. Solution:   Clear w_valid when entering another buffer.
  14. Files:        src/buffer.c
  15.  
  16.  
  17. *** ../vim-7.2.374/src/buffer.c    2010-01-19 14:59:14.000000000 +0100
  18. --- src/buffer.c    2010-02-24 16:29:22.000000000 +0100
  19. ***************
  20. *** 115,121 ****
  21.   #endif
  22.   
  23.       /* mark cursor position as being invalid */
  24. !     changed_line_abv_curs();
  25.   
  26.       if (curbuf->b_ffname != NULL
  27.   #ifdef FEAT_NETBEANS_INTG
  28. --- 115,121 ----
  29.   #endif
  30.   
  31.       /* mark cursor position as being invalid */
  32. !     curwin->w_valid = 0;
  33.   
  34.       if (curbuf->b_ffname != NULL
  35.   #ifdef FEAT_NETBEANS_INTG
  36. ***************
  37. *** 1399,1404 ****
  38. --- 1399,1407 ----
  39.       curwin->w_topline_was_set = FALSE;
  40.   #endif
  41.   
  42. +     /* mark cursor position as being invalid */
  43. +     curwin->w_valid = 0;
  44.       /* Make sure the buffer is loaded. */
  45.       if (curbuf->b_ml.ml_mfp == NULL)    /* need to load the file */
  46.       {
  47. *** ../vim-7.2.374/src/version.c    2010-02-24 15:47:58.000000000 +0100
  48. --- src/version.c    2010-02-24 16:30:03.000000000 +0100
  49. ***************
  50. *** 683,684 ****
  51. --- 683,686 ----
  52.   {   /* Add new patch number below this line */
  53. + /**/
  54. +     375,
  55.   /**/
  56.  
  57. -- 
  58. Error:015 - Unable to exit Windows.  Try the door.
  59.  
  60.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  61. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  62. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  63.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  64.