|
Karsten Hopp |
32093d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
32093d |
Subject: Patch 7.4.364
|
|
Karsten Hopp |
32093d |
Fcc: outbox
|
|
Karsten Hopp |
32093d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
32093d |
Mime-Version: 1.0
|
|
Karsten Hopp |
32093d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
32093d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
32093d |
------------
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
Patch 7.4.364
|
|
Karsten Hopp |
32093d |
Problem: When the viminfo file can't be renamed there is no error message.
|
|
Karsten Hopp |
32093d |
(Vladimir Berezhnoy)
|
|
Karsten Hopp |
32093d |
Solution: Check for the rename to fail.
|
|
Karsten Hopp |
32093d |
Files: src/ex_cmds.c
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
*** ../vim-7.4.363/src/ex_cmds.c 2014-05-22 14:00:12.694534712 +0200
|
|
Karsten Hopp |
32093d |
--- src/ex_cmds.c 2014-07-09 21:11:44.531557830 +0200
|
|
Karsten Hopp |
32093d |
***************
|
|
Karsten Hopp |
32093d |
*** 2004,2014 ****
|
|
Karsten Hopp |
32093d |
{
|
|
Karsten Hopp |
32093d |
fclose(fp_in);
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
! /*
|
|
Karsten Hopp |
32093d |
! * In case of an error keep the original viminfo file.
|
|
Karsten Hopp |
32093d |
! * Otherwise rename the newly written file.
|
|
Karsten Hopp |
32093d |
! */
|
|
Karsten Hopp |
32093d |
! if (viminfo_errcnt || vim_rename(tempname, fname) == -1)
|
|
Karsten Hopp |
32093d |
mch_remove(tempname);
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
#ifdef WIN3264
|
|
Karsten Hopp |
32093d |
--- 2004,2017 ----
|
|
Karsten Hopp |
32093d |
{
|
|
Karsten Hopp |
32093d |
fclose(fp_in);
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
! /* In case of an error keep the original viminfo file. Otherwise
|
|
Karsten Hopp |
32093d |
! * rename the newly written file. Give an error if that fails. */
|
|
Karsten Hopp |
32093d |
! if (viminfo_errcnt == 0 && vim_rename(tempname, fname) == -1)
|
|
Karsten Hopp |
32093d |
! {
|
|
Karsten Hopp |
32093d |
! ++viminfo_errcnt;
|
|
Karsten Hopp |
32093d |
! EMSG2(_("E886: Can't rename viminfo file to %s!"), fname);
|
|
Karsten Hopp |
32093d |
! }
|
|
Karsten Hopp |
32093d |
! if (viminfo_errcnt > 0)
|
|
Karsten Hopp |
32093d |
mch_remove(tempname);
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
#ifdef WIN3264
|
|
Karsten Hopp |
32093d |
*** ../vim-7.4.363/src/version.c 2014-07-09 20:51:04.519583033 +0200
|
|
Karsten Hopp |
32093d |
--- src/version.c 2014-07-09 21:13:18.575555919 +0200
|
|
Karsten Hopp |
32093d |
***************
|
|
Karsten Hopp |
32093d |
*** 736,737 ****
|
|
Karsten Hopp |
32093d |
--- 736,739 ----
|
|
Karsten Hopp |
32093d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
32093d |
+ /**/
|
|
Karsten Hopp |
32093d |
+ 364,
|
|
Karsten Hopp |
32093d |
/**/
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
--
|
|
Karsten Hopp |
32093d |
MONK: ... and the Lord spake, saying, "First shalt thou take out the Holy Pin,
|
|
Karsten Hopp |
32093d |
then shalt thou count to three, no more, no less. Three shalt be the
|
|
Karsten Hopp |
32093d |
number thou shalt count, and the number of the counting shalt be three.
|
|
Karsten Hopp |
32093d |
Four shalt thou not count, neither count thou two, excepting that thou
|
|
Karsten Hopp |
32093d |
then proceed to three. Five is right out. Once the number three, being
|
|
Karsten Hopp |
32093d |
the third number, be reached, then lobbest thou thy Holy Hand Grenade of
|
|
Karsten Hopp |
32093d |
Antioch towards thou foe, who being naughty in my sight, shall snuff it.
|
|
Karsten Hopp |
32093d |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
32093d |
|
|
Karsten Hopp |
32093d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
32093d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
32093d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
32093d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|