|
Karsten Hopp |
eb5c8e |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
eb5c8e |
Subject: Patch 7.3.511
|
|
Karsten Hopp |
eb5c8e |
Fcc: outbox
|
|
Karsten Hopp |
eb5c8e |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
eb5c8e |
Mime-Version: 1.0
|
|
Karsten Hopp |
eb5c8e |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
eb5c8e |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
eb5c8e |
------------
|
|
Karsten Hopp |
eb5c8e |
|
|
Karsten Hopp |
eb5c8e |
Patch 7.3.511
|
|
Karsten Hopp |
eb5c8e |
Problem: Using a FileReadCmd autocommand that does ":e! {file}" may cause a
|
|
Karsten Hopp |
eb5c8e |
crash. (Christian Brabandt)
|
|
Karsten Hopp |
eb5c8e |
Solution: Properly restore curwin->w_s.
|
|
Karsten Hopp |
eb5c8e |
Files: src/fileio.c
|
|
Karsten Hopp |
eb5c8e |
|
|
Karsten Hopp |
eb5c8e |
|
|
Karsten Hopp |
eb5c8e |
*** ../vim-7.3.510/src/fileio.c 2012-04-25 16:50:44.000000000 +0200
|
|
Karsten Hopp |
eb5c8e |
--- src/fileio.c 2012-04-30 17:04:22.000000000 +0200
|
|
Karsten Hopp |
eb5c8e |
***************
|
|
Karsten Hopp |
eb5c8e |
*** 8982,8987 ****
|
|
Karsten Hopp |
eb5c8e |
--- 8982,8991 ----
|
|
Karsten Hopp |
eb5c8e |
&& buf_valid(aco->new_curbuf)
|
|
Karsten Hopp |
eb5c8e |
&& aco->new_curbuf->b_ml.ml_mfp != NULL)
|
|
Karsten Hopp |
eb5c8e |
{
|
|
Karsten Hopp |
eb5c8e |
+ # if defined(FEAT_SYN_HL) || defined(FEAT_SPELL)
|
|
Karsten Hopp |
eb5c8e |
+ if (curwin->w_s == &curbuf->b_s)
|
|
Karsten Hopp |
eb5c8e |
+ curwin->w_s = &aco->new_curbuf->b_s;
|
|
Karsten Hopp |
eb5c8e |
+ # endif
|
|
Karsten Hopp |
eb5c8e |
--curbuf->b_nwindows;
|
|
Karsten Hopp |
eb5c8e |
curbuf = aco->new_curbuf;
|
|
Karsten Hopp |
eb5c8e |
curwin->w_buffer = curbuf;
|
|
Karsten Hopp |
eb5c8e |
*** ../vim-7.3.510/src/version.c 2012-04-30 11:34:20.000000000 +0200
|
|
Karsten Hopp |
eb5c8e |
--- src/version.c 2012-04-30 17:01:05.000000000 +0200
|
|
Karsten Hopp |
eb5c8e |
***************
|
|
Karsten Hopp |
eb5c8e |
*** 716,717 ****
|
|
Karsten Hopp |
eb5c8e |
--- 716,719 ----
|
|
Karsten Hopp |
eb5c8e |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
eb5c8e |
+ /**/
|
|
Karsten Hopp |
eb5c8e |
+ 511,
|
|
Karsten Hopp |
eb5c8e |
/**/
|
|
Karsten Hopp |
eb5c8e |
|
|
Karsten Hopp |
eb5c8e |
--
|
|
Karsten Hopp |
eb5c8e |
There is no right or wrong, there is only your personal opinion.
|
|
Karsten Hopp |
eb5c8e |
(Bram Moolenaar)
|
|
Karsten Hopp |
eb5c8e |
|
|
Karsten Hopp |
eb5c8e |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
eb5c8e |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
eb5c8e |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
eb5c8e |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|