4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: In a Vim build without autocommands, checking a file that was
12 changed externally causes the current buffer to be changed
13 unexpectedly. (Karsten Hopp)
14 Solution: Store "curbuf" instead of "buf".
18 *** ../vim-7.1.270/src/fileio.c Wed Feb 20 18:14:25 2008
19 --- src/fileio.c Tue Mar 11 21:35:05 2008
22 aco_save_T *aco; /* structure to save values in */
23 buf_T *buf; /* new curbuf */
25 ! aco->save_buf = buf;
27 curwin->w_buffer = buf;
30 aco_save_T *aco; /* structure to save values in */
31 buf_T *buf; /* new curbuf */
33 ! aco->save_buf = curbuf;
35 curwin->w_buffer = buf;
37 *** ../vim-7.1.270/src/version.c Mon Mar 10 21:33:52 2008
38 --- src/version.c Tue Mar 11 21:57:30 2008
42 { /* Add new patch number below this line */
48 In a world without walls and borders, who needs windows and gates?
50 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
51 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
52 \\\ download, build and distribute -- http://www.A-A-P.org ///
53 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///