]>
Commit | Line | Data |
---|---|---|
ef75664d AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.271 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.271 | |
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". | |
15 | Files: src/fileio.c | |
16 | ||
17 | ||
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 | |
20 | *************** | |
21 | *** 9239,9245 **** | |
22 | aco_save_T *aco; /* structure to save values in */ | |
23 | buf_T *buf; /* new curbuf */ | |
24 | { | |
25 | ! aco->save_buf = buf; | |
26 | curbuf = buf; | |
27 | curwin->w_buffer = buf; | |
28 | } | |
29 | --- 9248,9254 ---- | |
30 | aco_save_T *aco; /* structure to save values in */ | |
31 | buf_T *buf; /* new curbuf */ | |
32 | { | |
33 | ! aco->save_buf = curbuf; | |
34 | curbuf = buf; | |
35 | curwin->w_buffer = buf; | |
36 | } | |
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 | |
39 | *************** | |
40 | *** 668,669 **** | |
41 | --- 668,671 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 271, | |
45 | /**/ | |
46 | ||
47 | -- | |
48 | In a world without walls and borders, who needs windows and gates? | |
49 | ||
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 /// |