|
Karsten Hopp |
3ed48b |
To: vim-dev@vim.org
|
|
Karsten Hopp |
3ed48b |
Subject: patch 7.0.179
|
|
Karsten Hopp |
3ed48b |
Fcc: outbox
|
|
Karsten Hopp |
3ed48b |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
3ed48b |
Mime-Version: 1.0
|
|
Karsten Hopp |
3ed48b |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
3ed48b |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
3ed48b |
------------
|
|
Karsten Hopp |
3ed48b |
|
|
Karsten Hopp |
3ed48b |
Patch 7.0.179
|
|
Karsten Hopp |
3ed48b |
Problem: Using ":recover" or "vim -r" without a swapfile crashes Vim.
|
|
Karsten Hopp |
3ed48b |
Solution: Check for "buf" to be unequal NULL. (Yukihiro Nakadaira)
|
|
Karsten Hopp |
3ed48b |
Files: src/memline.c
|
|
Karsten Hopp |
3ed48b |
|
|
Karsten Hopp |
3ed48b |
|
|
Karsten Hopp |
3ed48b |
*** ../vim-7.0.178/src/memline.c Tue Nov 21 20:57:21 2006
|
|
Karsten Hopp |
3ed48b |
--- src/memline.c Tue Jan 9 14:33:44 2007
|
|
Karsten Hopp |
3ed48b |
***************
|
|
Karsten Hopp |
3ed48b |
*** 1329,1336 ****
|
|
Karsten Hopp |
3ed48b |
mf_put(mfp, hp, FALSE, FALSE);
|
|
Karsten Hopp |
3ed48b |
mf_close(mfp, FALSE); /* will also vim_free(mfp->mf_fname) */
|
|
Karsten Hopp |
3ed48b |
}
|
|
Karsten Hopp |
3ed48b |
! vim_free(buf->b_ml.ml_stack);
|
|
Karsten Hopp |
3ed48b |
! vim_free(buf);
|
|
Karsten Hopp |
3ed48b |
if (serious_error && called_from_main)
|
|
Karsten Hopp |
3ed48b |
ml_close(curbuf, TRUE);
|
|
Karsten Hopp |
3ed48b |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
3ed48b |
--- 1329,1339 ----
|
|
Karsten Hopp |
3ed48b |
mf_put(mfp, hp, FALSE, FALSE);
|
|
Karsten Hopp |
3ed48b |
mf_close(mfp, FALSE); /* will also vim_free(mfp->mf_fname) */
|
|
Karsten Hopp |
3ed48b |
}
|
|
Karsten Hopp |
3ed48b |
! if (buf != NULL)
|
|
Karsten Hopp |
3ed48b |
! {
|
|
Karsten Hopp |
3ed48b |
! vim_free(buf->b_ml.ml_stack);
|
|
Karsten Hopp |
3ed48b |
! vim_free(buf);
|
|
Karsten Hopp |
3ed48b |
! }
|
|
Karsten Hopp |
3ed48b |
if (serious_error && called_from_main)
|
|
Karsten Hopp |
3ed48b |
ml_close(curbuf, TRUE);
|
|
Karsten Hopp |
3ed48b |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
3ed48b |
*** ../vim-7.0.178/src/version.c Tue Dec 5 22:09:02 2006
|
|
Karsten Hopp |
3ed48b |
--- src/version.c Tue Jan 9 14:35:59 2007
|
|
Karsten Hopp |
3ed48b |
***************
|
|
Karsten Hopp |
3ed48b |
*** 668,669 ****
|
|
Karsten Hopp |
3ed48b |
--- 668,671 ----
|
|
Karsten Hopp |
3ed48b |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
3ed48b |
+ /**/
|
|
Karsten Hopp |
3ed48b |
+ 179,
|
|
Karsten Hopp |
3ed48b |
/**/
|
|
Karsten Hopp |
3ed48b |
|
|
Karsten Hopp |
3ed48b |
--
|
|
Karsten Hopp |
3ed48b |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
3ed48b |
10. And even your night dreams are in HTML.
|
|
Karsten Hopp |
3ed48b |
|
|
Karsten Hopp |
3ed48b |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
3ed48b |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
3ed48b |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
3ed48b |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|