|
Karsten Hopp |
25b1ca |
To: vim-dev@vim.org
|
|
Karsten Hopp |
25b1ca |
Subject: Patch 7.2.299
|
|
Karsten Hopp |
25b1ca |
Fcc: outbox
|
|
Karsten Hopp |
25b1ca |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
25b1ca |
Mime-Version: 1.0
|
|
Karsten Hopp |
25b1ca |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
25b1ca |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
25b1ca |
------------
|
|
Karsten Hopp |
25b1ca |
|
|
Karsten Hopp |
25b1ca |
Patch 7.2.299
|
|
Karsten Hopp |
25b1ca |
Problem: Crash when comment middle is longer than start.
|
|
Karsten Hopp |
25b1ca |
Solution: Fix size computation. (Lech Lorens)
|
|
Karsten Hopp |
25b1ca |
Files: src/misc1.c
|
|
Karsten Hopp |
25b1ca |
|
|
Karsten Hopp |
25b1ca |
|
|
Karsten Hopp |
25b1ca |
*** ../vim-7.2.298/src/misc1.c 2009-11-11 17:30:05.000000000 +0100
|
|
Karsten Hopp |
25b1ca |
--- src/misc1.c 2009-11-17 15:59:28.000000000 +0100
|
|
Karsten Hopp |
25b1ca |
***************
|
|
Karsten Hopp |
25b1ca |
*** 1121,1127 ****
|
|
Karsten Hopp |
25b1ca |
if (i != lead_repl_len)
|
|
Karsten Hopp |
25b1ca |
{
|
|
Karsten Hopp |
25b1ca |
mch_memmove(p + lead_repl_len, p + i,
|
|
Karsten Hopp |
25b1ca |
! (size_t)(lead_len - i - (leader - p)));
|
|
Karsten Hopp |
25b1ca |
lead_len += lead_repl_len - i;
|
|
Karsten Hopp |
25b1ca |
}
|
|
Karsten Hopp |
25b1ca |
}
|
|
Karsten Hopp |
25b1ca |
--- 1121,1127 ----
|
|
Karsten Hopp |
25b1ca |
if (i != lead_repl_len)
|
|
Karsten Hopp |
25b1ca |
{
|
|
Karsten Hopp |
25b1ca |
mch_memmove(p + lead_repl_len, p + i,
|
|
Karsten Hopp |
25b1ca |
! (size_t)(lead_len - i - (p - leader)));
|
|
Karsten Hopp |
25b1ca |
lead_len += lead_repl_len - i;
|
|
Karsten Hopp |
25b1ca |
}
|
|
Karsten Hopp |
25b1ca |
}
|
|
Karsten Hopp |
25b1ca |
*** ../vim-7.2.298/src/version.c 2009-11-17 14:57:19.000000000 +0100
|
|
Karsten Hopp |
25b1ca |
--- src/version.c 2009-11-17 16:01:07.000000000 +0100
|
|
Karsten Hopp |
25b1ca |
***************
|
|
Karsten Hopp |
25b1ca |
*** 683,684 ****
|
|
Karsten Hopp |
25b1ca |
--- 683,686 ----
|
|
Karsten Hopp |
25b1ca |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
25b1ca |
+ /**/
|
|
Karsten Hopp |
25b1ca |
+ 299,
|
|
Karsten Hopp |
25b1ca |
/**/
|
|
Karsten Hopp |
25b1ca |
|
|
Karsten Hopp |
25b1ca |
--
|
|
Karsten Hopp |
25b1ca |
BLACK KNIGHT: The Black Knight always triumphs. Have at you!
|
|
Karsten Hopp |
25b1ca |
ARTHUR takes his last leg off. The BLACK KNIGHT's body lands upright.
|
|
Karsten Hopp |
25b1ca |
BLACK KNIGHT: All right, we'll call it a draw.
|
|
Karsten Hopp |
25b1ca |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
25b1ca |
|
|
Karsten Hopp |
25b1ca |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
25b1ca |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
25b1ca |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
25b1ca |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|