components/vim/vim72-patches/7.2.375
changeset 198 172fc01ce997
equal deleted inserted replaced
197:fd801ec0737c 198:172fc01ce997
       
     1 To: [email protected]
       
     2 Subject: Patch 7.2.375
       
     3 Fcc: outbox
       
     4 From: Bram Moolenaar <[email protected]>
       
     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 + 
       
    45       /* Make sure the buffer is loaded. */
       
    46       if (curbuf->b_ml.ml_mfp == NULL)	/* need to load the file */
       
    47       {
       
    48 *** ../vim-7.2.374/src/version.c	2010-02-24 15:47:58.000000000 +0100
       
    49 --- src/version.c	2010-02-24 16:30:03.000000000 +0100
       
    50 ***************
       
    51 *** 683,684 ****
       
    52 --- 683,686 ----
       
    53   {   /* Add new patch number below this line */
       
    54 + /**/
       
    55 +     375,
       
    56   /**/
       
    57 
       
    58 -- 
       
    59 Error:015 - Unable to exit Windows.  Try the door.
       
    60 
       
    61  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
       
    62 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
       
    63 \\\        download, build and distribute -- http://www.A-A-P.org        ///
       
    64  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///