|
Karsten Hopp |
7107d4 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
7107d4 |
Subject: Patch 7.1.271
|
|
Karsten Hopp |
7107d4 |
Fcc: outbox
|
|
Karsten Hopp |
7107d4 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
7107d4 |
Mime-Version: 1.0
|
|
Karsten Hopp |
7107d4 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
7107d4 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
7107d4 |
------------
|
|
Karsten Hopp |
7107d4 |
|
|
Karsten Hopp |
7107d4 |
Patch 7.1.271
|
|
Karsten Hopp |
7107d4 |
Problem: In a Vim build without autocommands, checking a file that was
|
|
Karsten Hopp |
7107d4 |
changed externally causes the current buffer to be changed
|
|
Karsten Hopp |
7107d4 |
unexpectedly. (Karsten Hopp)
|
|
Karsten Hopp |
7107d4 |
Solution: Store "curbuf" instead of "buf".
|
|
Karsten Hopp |
7107d4 |
Files: src/fileio.c
|
|
Karsten Hopp |
7107d4 |
|
|
Karsten Hopp |
7107d4 |
|
|
Karsten Hopp |
7107d4 |
*** ../vim-7.1.270/src/fileio.c Wed Feb 20 18:14:25 2008
|
|
Karsten Hopp |
7107d4 |
--- src/fileio.c Tue Mar 11 21:35:05 2008
|
|
Karsten Hopp |
7107d4 |
***************
|
|
Karsten Hopp |
7107d4 |
*** 9239,9245 ****
|
|
Karsten Hopp |
7107d4 |
aco_save_T *aco; /* structure to save values in */
|
|
Karsten Hopp |
7107d4 |
buf_T *buf; /* new curbuf */
|
|
Karsten Hopp |
7107d4 |
{
|
|
Karsten Hopp |
7107d4 |
! aco->save_buf = buf;
|
|
Karsten Hopp |
7107d4 |
curbuf = buf;
|
|
Karsten Hopp |
7107d4 |
curwin->w_buffer = buf;
|
|
Karsten Hopp |
7107d4 |
}
|
|
Karsten Hopp |
7107d4 |
--- 9248,9254 ----
|
|
Karsten Hopp |
7107d4 |
aco_save_T *aco; /* structure to save values in */
|
|
Karsten Hopp |
7107d4 |
buf_T *buf; /* new curbuf */
|
|
Karsten Hopp |
7107d4 |
{
|
|
Karsten Hopp |
7107d4 |
! aco->save_buf = curbuf;
|
|
Karsten Hopp |
7107d4 |
curbuf = buf;
|
|
Karsten Hopp |
7107d4 |
curwin->w_buffer = buf;
|
|
Karsten Hopp |
7107d4 |
}
|
|
Karsten Hopp |
7107d4 |
*** ../vim-7.1.270/src/version.c Mon Mar 10 21:33:52 2008
|
|
Karsten Hopp |
7107d4 |
--- src/version.c Tue Mar 11 21:57:30 2008
|
|
Karsten Hopp |
7107d4 |
***************
|
|
Karsten Hopp |
7107d4 |
*** 668,669 ****
|
|
Karsten Hopp |
7107d4 |
--- 668,671 ----
|
|
Karsten Hopp |
7107d4 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
7107d4 |
+ /**/
|
|
Karsten Hopp |
7107d4 |
+ 271,
|
|
Karsten Hopp |
7107d4 |
/**/
|
|
Karsten Hopp |
7107d4 |
|
|
Karsten Hopp |
7107d4 |
--
|
|
Karsten Hopp |
7107d4 |
In a world without walls and borders, who needs windows and gates?
|
|
Karsten Hopp |
7107d4 |
|
|
Karsten Hopp |
7107d4 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
7107d4 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
7107d4 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
7107d4 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|