|
Karsten Hopp |
eaf28d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
eaf28d |
Subject: Patch 7.4.702
|
|
Karsten Hopp |
eaf28d |
Fcc: outbox
|
|
Karsten Hopp |
eaf28d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
eaf28d |
Mime-Version: 1.0
|
|
Karsten Hopp |
eaf28d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
eaf28d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
eaf28d |
------------
|
|
Karsten Hopp |
eaf28d |
|
|
Karsten Hopp |
eaf28d |
Patch 7.4.702
|
|
Karsten Hopp |
eaf28d |
Problem: Joining an empty list does uneccessary work.
|
|
Karsten Hopp |
eaf28d |
Solution: Let join() return early. (Marco Hinz)
|
|
Karsten Hopp |
eaf28d |
Files: src/eval.c
|
|
Karsten Hopp |
eaf28d |
|
|
Karsten Hopp |
eaf28d |
|
|
Karsten Hopp |
eaf28d |
*** ../vim-7.4.701/src/eval.c 2015-04-13 16:16:31.225091428 +0200
|
|
Karsten Hopp |
eaf28d |
--- src/eval.c 2015-04-16 22:47:20.871690015 +0200
|
|
Karsten Hopp |
eaf28d |
***************
|
|
Karsten Hopp |
eaf28d |
*** 6780,6785 ****
|
|
Karsten Hopp |
eaf28d |
--- 6780,6787 ----
|
|
Karsten Hopp |
eaf28d |
join_T *p;
|
|
Karsten Hopp |
eaf28d |
int i;
|
|
Karsten Hopp |
eaf28d |
|
|
Karsten Hopp |
eaf28d |
+ if (l->lv_len < 1)
|
|
Karsten Hopp |
eaf28d |
+ return OK; /* nothing to do */
|
|
Karsten Hopp |
eaf28d |
ga_init2(&join_ga, (int)sizeof(join_T), l->lv_len);
|
|
Karsten Hopp |
eaf28d |
retval = list_join_inner(gap, l, sep, echo_style, copyID, &join_ga);
|
|
Karsten Hopp |
eaf28d |
|
|
Karsten Hopp |
eaf28d |
*** ../vim-7.4.701/src/version.c 2015-04-15 14:27:43.020135640 +0200
|
|
Karsten Hopp |
eaf28d |
--- src/version.c 2015-04-16 22:50:07.169941629 +0200
|
|
Karsten Hopp |
eaf28d |
***************
|
|
Karsten Hopp |
eaf28d |
*** 743,744 ****
|
|
Karsten Hopp |
eaf28d |
--- 743,746 ----
|
|
Karsten Hopp |
eaf28d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
eaf28d |
+ /**/
|
|
Karsten Hopp |
eaf28d |
+ 702,
|
|
Karsten Hopp |
eaf28d |
/**/
|
|
Karsten Hopp |
eaf28d |
|
|
Karsten Hopp |
eaf28d |
--
|
|
Karsten Hopp |
eaf28d |
CART DRIVER: Bring out your dead!
|
|
Karsten Hopp |
eaf28d |
There are legs stick out of windows and doors. Two MEN are fighting in the
|
|
Karsten Hopp |
eaf28d |
mud - covered from head to foot in it. Another MAN is on his hands in
|
|
Karsten Hopp |
eaf28d |
knees shovelling mud into his mouth. We just catch sight of a MAN falling
|
|
Karsten Hopp |
eaf28d |
into a well.
|
|
Karsten Hopp |
eaf28d |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
eaf28d |
|
|
Karsten Hopp |
eaf28d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
eaf28d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
eaf28d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
eaf28d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|